Document move effects

Document mist effect

Document recoil effect

Document heal effect

Update conversion_effect.asm

Update haze_effect.asm

Update leech_seed_effect.asm

Update pay_day_effect.asm

Update reflect_light_screen_effect.asm

Update substitute_effect.asm

Update transform_effect.asm
This commit is contained in:
xCrystal 2015-04-08 12:15:08 +02:00
parent c2efe700ac
commit b2dc57576d
11 changed files with 158 additions and 129 deletions

View file

@ -5,24 +5,26 @@ PayDayEffect_ ; 2feb8 (b:7eb8)
ld a, [H_WHOSETURN]
and a
ld a, [wBattleMonLevel]
jr z, .asm_2fec8
jr z, .payDayEffect
ld a, [wEnemyMonLevel]
.asm_2fec8
add a
.payDayEffect
; level * 2
add a
ld [H_DIVIDEND + 3], a
xor a
ld [H_DIVIDEND], a
ld [H_DIVIDEND + 1], a
ld [H_DIVIDEND + 2], a
ld a, $64
; convert to BCD
ld a, 100
ld [H_DIVISOR], a
ld b, $4
call Divide
ld a, [H_QUOTIENT + 3]
ld [hli], a
ld [hli], a
ld a, [H_REMAINDER]
ld [H_DIVIDEND + 3], a
ld a, $a
ld a, 10
ld [H_DIVISOR], a
ld b, $4
call Divide