You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
implement move effect constants
This commit is contained in:
@@ -2808,15 +2808,15 @@ BattleCommand0b: ; 34f60
|
|||||||
ld [$cfca], a
|
ld [$cfca], a
|
||||||
ld a, BATTLE_VARS_MOVE_EFFECT
|
ld a, BATTLE_VARS_MOVE_EFFECT
|
||||||
call CleanGetBattleVarPair
|
call CleanGetBattleVarPair
|
||||||
cp $1d ; multihit
|
cp EFFECT_MULTI_HIT
|
||||||
jr z, .asm_34fb0
|
jr z, .asm_34fb0
|
||||||
cp $1e ; conversion
|
cp EFFECT_CONVERSION
|
||||||
jr z, .asm_34fb0
|
jr z, .asm_34fb0
|
||||||
cp $2c ; double kick / bonemerang
|
cp EFFECT_DOUBLE_HIT
|
||||||
jr z, .asm_34fb0
|
jr z, .asm_34fb0
|
||||||
cp $4d ; twineedle
|
cp EFFECT_TWINEEDLE
|
||||||
jr z, .asm_34fb0
|
jr z, .asm_34fb0
|
||||||
cp $68 ; triple kick
|
cp EFFECT_TRIPLE_KICK
|
||||||
jr z, .asm_34f96
|
jr z, .asm_34f96
|
||||||
xor a
|
xor a
|
||||||
ld [$c689], a
|
ld [$c689], a
|
||||||
@@ -4042,7 +4042,7 @@ BattleCommand62: ; 35612
|
|||||||
call CleanGetBattleVarPair
|
call CleanGetBattleVarPair
|
||||||
|
|
||||||
; Selfdestruct and Explosion halve defense.
|
; Selfdestruct and Explosion halve defense.
|
||||||
cp $7 ; selfdestruct / explosion
|
cp EFFECT_EXPLOSION
|
||||||
jr nz, .asm_35620
|
jr nz, .asm_35620
|
||||||
|
|
||||||
srl c
|
srl c
|
||||||
@@ -4052,10 +4052,10 @@ BattleCommand62: ; 35612
|
|||||||
.asm_35620
|
.asm_35620
|
||||||
|
|
||||||
; Variable-hit moves and Conversion can have a power of 0.
|
; Variable-hit moves and Conversion can have a power of 0.
|
||||||
cp $1d ; multihit
|
cp EFFECT_MULTI_HIT
|
||||||
jr z, .asm_3562b
|
jr z, .asm_3562b
|
||||||
|
|
||||||
cp $1e ; conversion
|
cp EFFECT_CONVERSION
|
||||||
jr z, .asm_3562b
|
jr z, .asm_3562b
|
||||||
|
|
||||||
; No damage if move power is 0.
|
; No damage if move power is 0.
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user