Browse Source

wring out, fix some major move bugs (removed pss split for now)

SBird1337 8 years ago
parent
commit
e7c594ff0d

+ 1
- 1
bpre.sym View File

89
 battle_attack_effectivity = 0x02023DCC;
89
 battle_attack_effectivity = 0x02023DCC;
90
 battle_weather = 0x02023F1C;
90
 battle_weather = 0x02023F1C;
91
 battle_damage_store = 0x02023D50;
91
 battle_damage_store = 0x02023D50;
92
+battle_base_power = 0x02023F50;
92
 battle_string_message_table = 0x083FDF3C;
93
 battle_string_message_table = 0x083FDF3C;
93
 battle_crit_loc = 0x02023D71;
94
 battle_crit_loc = 0x02023D71;
94
-battle_base_power = 0x02024020;
95
 battle_side_unknown = 0x02023FDB;
95
 battle_side_unknown = 0x02023FDB;
96
 battle_side_timers = 0x02023DE4;
96
 battle_side_timers = 0x02023DE4;
97
 battle_hitmarker = 0x02023dd0;
97
 battle_hitmarker = 0x02023dd0;

+ 2
- 0
data/moves/effect_table.S View File

226
         .word bs_close_combat @217
226
         .word bs_close_combat @217
227
         .word bs_pay_back@218
227
         .word bs_pay_back@218
228
         .word bs_assurance@219
228
         .word bs_assurance@219
229
+        .word bs_crush_grip_like    @220
230
+        .word bs_power_trick    @221

+ 2
- 3
data/moves/move_data.S View File

386
 move_data_akupressur:		.byte	MOVE_EFFECT_NONE,			0,		0,		0,		30,		0,		16,		0,		4,		0,		2,		0
386
 move_data_akupressur:		.byte	MOVE_EFFECT_NONE,			0,		0,		0,		30,		0,		16,		0,		4,		0,		2,		0
387
 move_data_metallstoss:		.byte	89,                     1,		8,		100,		10,		0,		1,		0,		0,		0,		0,		0
387
 move_data_metallstoss:		.byte	89,                     1,		8,		100,		10,		0,		1,		0,		0,		0,		0,		0
388
 move_data_kehrtwende:		.byte	127,            	70,		6,		100,		20,		0,		0,		0,		51,		0,		0,		0
388
 move_data_kehrtwende:		.byte	127,            	70,		6,		100,		20,		0,		0,		0,		51,		0,		0,		0
389
-
390
 move_data_nahkampf:		.byte	217,            	120,		1,		100,		5,		100,		0,		0,		51,		0,		0,		0
389
 move_data_nahkampf:		.byte	217,            	120,		1,		100,		5,		100,		0,		0,		51,		0,		0,		0
391
 move_data_gegenstoss:		.byte	218,            	50,		17,		100,		10,		0,		0,		0,		51,		0,		0,		0
390
 move_data_gegenstoss:		.byte	218,            	50,		17,		100,		10,		0,		0,		0,		51,		0,		0,		0
392
 move_data_gewissheit:		.byte	219,			60,		17,		100,		10,		0,		0,		0,		51,		0,		0,		0
391
 move_data_gewissheit:		.byte	219,			60,		17,		100,		10,		0,		0,		0,		51,		0,		0,		0
395
 move_data_psybann:		.byte	MOVE_EFFECT_NONE,	0,		14,		100,		10,		0,		0,		0,		18,		0,		2,		0
394
 move_data_psybann:		.byte	MOVE_EFFECT_NONE,	0,		14,		100,		10,		0,		0,		0,		18,		0,		2,		0
396
 move_data_trumpfkarte:		.byte	MOVE_EFFECT_NONE,	1,		0,		100,		5,		0,		0,		0,		51,		0,		1,		0
395
 move_data_trumpfkarte:		.byte	MOVE_EFFECT_NONE,	1,		0,		100,		5,		0,		0,		0,		51,		0,		1,		0
397
 move_data_heilblockade:		.byte	MOVE_EFFECT_NONE,	0,		14,		100,		15,		0,		8,		0,		18,		0,		2,		0
396
 move_data_heilblockade:		.byte	MOVE_EFFECT_NONE,	0,		14,		100,		15,		0,		8,		0,		18,		0,		2,		0
398
-move_data_auswringen:		.byte	MOVE_EFFECT_NONE,	120,		0,		100,		5,		0,		0,		0,		51,		0,		1,		0
399
-move_data_krafttrick:		.byte	MOVE_EFFECT_NONE,	0,		14,		0,		10,		0,		0,		0,		4,		0,		2,		0
397
+move_data_auswringen:		.byte	220,			1,		0,		100,		5,		0,		0,		0,		51,		0,		1,		0
398
+move_data_krafttrick:		.byte	221,            	0,		14,		0,		10,		0,		0,		0,		4,		0,		2,		0
400
 move_data_magensaefte:		.byte	MOVE_EFFECT_NONE,	0,		3,		100,		10,		0,		0,		0,		50,		0,		2,		0
399
 move_data_magensaefte:		.byte	MOVE_EFFECT_NONE,	0,		3,		100,		10,		0,		0,		0,		50,		0,		2,		0
401
 move_data_beschwoerung:		.byte	MOVE_EFFECT_NONE,	0,		0,		0,		30,		0,		16,		0,		4,		0,		2,		0
400
 move_data_beschwoerung:		.byte	MOVE_EFFECT_NONE,	0,		0,		0,		30,		0,		16,		0,		4,		0,		2,		0
402
 move_data_egotrip:		.byte	MOVE_EFFECT_NONE,	0,		0,		0,		20,		0,		0,		0,		2,		0,		2,		0
401
 move_data_egotrip:		.byte	MOVE_EFFECT_NONE,	0,		0,		0,		20,		0,		0,		0,		2,		0,		2,		0

+ 1
- 1
data/pkmn_tables/pokemon_moveset_table.S View File

1218
 .byte 0x1 
1218
 .byte 0x1 
1219
 .hword 0x2D 
1219
 .hword 0x2D 
1220
 .byte 0x3 
1220
 .byte 0x3 
1221
-.hword MOVE_THUNDER
1221
+.hword MOVE_WRING_OUT
1222
 .byte 0x7 
1222
 .byte 0x7 
1223
 .hword 0x16 
1223
 .hword 0x16 
1224
 .byte 0x9 
1224
 .byte 0x9 

+ 14
- 0
nbproject/configurations.xml View File

4666
             <in>close_combat.c</in>
4666
             <in>close_combat.c</in>
4667
             <in>close_combat_scripts.S</in>
4667
             <in>close_combat_scripts.S</in>
4668
           </df>
4668
           </df>
4669
+          <df name="crush_grip_like">
4670
+            <in>crush_grip_like_script.S</in>
4671
+            <in>hp_damage_mod.c</in>
4672
+          </df>
4669
           <df name="fang_moves">
4673
           <df name="fang_moves">
4670
             <in>fang_animations.S</in>
4674
             <in>fang_animations.S</in>
4671
             <in>fang_effect.S</in>
4675
             <in>fang_effect.S</in>
27386
             tool="4"
27390
             tool="4"
27387
             flavor2="0">
27391
             flavor2="0">
27388
       </item>
27392
       </item>
27393
+      <item path="src/moves/crush_grip_like/crush_grip_like_script.S"
27394
+            ex="false"
27395
+            tool="4"
27396
+            flavor2="0">
27397
+      </item>
27398
+      <item path="src/moves/crush_grip_like/hp_damage_mod.c"
27399
+            ex="false"
27400
+            tool="0"
27401
+            flavor2="0">
27402
+      </item>
27389
       <item path="src/moves/fang_moves/fang_animations.S"
27403
       <item path="src/moves/fang_moves/fang_animations.S"
27390
             ex="false"
27404
             ex="false"
27391
             tool="4"
27405
             tool="4"

+ 6
- 0
nbproject/private/configurations.xml View File

4055
             </df>
4055
             </df>
4056
             <df name="close_combat">
4056
             <df name="close_combat">
4057
             </df>
4057
             </df>
4058
+            <df name="crush_grip_like">
4059
+            </df>
4058
             <df name="fang_moves">
4060
             <df name="fang_moves">
4059
             </df>
4061
             </df>
4060
             <df name="feint">
4062
             <df name="feint">
5823
             <in>close_combat.c</in>
5825
             <in>close_combat.c</in>
5824
             <in>close_combat_scripts.S</in>
5826
             <in>close_combat_scripts.S</in>
5825
           </df>
5827
           </df>
5828
+          <df name="crush_grip_like">
5829
+            <in>crush_grip_like_script.S</in>
5830
+            <in>hp_damage_mod.c</in>
5831
+          </df>
5826
           <df name="fang_moves">
5832
           <df name="fang_moves">
5827
             <in>fang_animations.S</in>
5833
             <in>fang_animations.S</in>
5828
             <in>fang_effect.S</in>
5834
             <in>fang_effect.S</in>

+ 4
- 0
patches/move_table.asm View File

204
 .word move_table
204
 .word move_table
205
 .org 0x0803ECE8
205
 .org 0x0803ECE8
206
 .word move_table
206
 .word move_table
207
+.org 0x0803ED3C
208
+.word move_table
207
 .org 0x0803ED60
209
 .org 0x0803ED60
208
 .word move_table
210
 .word move_table
209
 .org 0x0803F254
211
 .org 0x0803F254
210
 .word move_table
212
 .word move_table
213
+.org 0x0803F3B4
214
+.word move_table
211
 .org 0x0803F510
215
 .org 0x0803F510
212
 .word move_table
216
 .word move_table
213
 .org 0x0804105C
217
 .org 0x0804105C

+ 1
- 0
src/include/battle_locations.h View File

12
 void* battlescript_cursor;
12
 void* battlescript_cursor;
13
 u8 battle_menu_chosen_item[4];
13
 u8 battle_menu_chosen_item[4];
14
 u8 battle_turn_order[4];
14
 u8 battle_turn_order[4];
15
+u16 battle_base_power;
15
 
16
 
16
 #endif
17
 #endif

+ 30
- 0
src/moves/crush_grip_like/crush_grip_like_script.S View File

1
+#include <battle_script.h>
2
+
3
+.align 2
4
+.text
5
+.thumb
6
+
7
+.global bs_crush_grip_like
8
+bs_crush_grip_like:
9
+    attackcanceler
10
+    accuracycheck 0x081D695E 0
11
+    attackstring    
12
+    ppreduce
13
+    callasm hp_damage_mod+1
14
+    calculatedamage
15
+    attackanimation
16
+    waitanimation
17
+    missmessage
18
+    cmd5c 0x0
19
+    waitstate
20
+    graphicalhpupdate 0x0
21
+    datahpupdate 0x0
22
+    critmessage
23
+    waitmessage 0x40
24
+    resultmessage
25
+    waitmessage 0x40
26
+    seteffectwithchancetarget
27
+    faintpokemon 0x0 0x0 0x0
28
+    setbyte 0x2023FD8 0x0
29
+    cmd49 0x0 0x0
30
+    end

+ 9
- 0
src/moves/crush_grip_like/hp_damage_mod.c View File

1
+#include <battle.h>
2
+
3
+u8 hp_damage_mod()
4
+{
5
+    battle_base_power = battle_participants[battle_defender_bank].current_hp * 120;
6
+    battle_base_power /= battle_participants[battle_defender_bank].max_hp;
7
+    battle_base_power++;
8
+    return false;
9
+}