diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2016-01-09 16:28:22 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2016-01-09 16:52:34 -0500 |
commit | 6d1b7f28c8987be16b05e8c68f7f50eb357b7cc5 (patch) | |
tree | b4b100bbfe54511540136e9c35ecb2eee572aafb /battle/effects/rollout.asm | |
parent | f14562da4b066a80af3edfc5171e083f63532109 (diff) |
Split base stats
Diffstat (limited to 'battle/effects/rollout.asm')
-rw-r--r-- | battle/effects/rollout.asm | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/battle/effects/rollout.asm b/battle/effects/rollout.asm index fe4c9189b..4ce9ab3d8 100644 --- a/battle/effects/rollout.asm +++ b/battle/effects/rollout.asm @@ -36,17 +36,17 @@ BattleCommand_RolloutPower: ; 37734 ld hl, PlayerRolloutCount ld a, [hBattleTurn] and a - jr z, .asm_37747 + jr z, .got_rollout_count ld hl, EnemyRolloutCount -.asm_37747 +.got_rollout_count ld a, [hl] and a - jr nz, .asm_37750 + jr nz, .skip_set_rampage ld a, 1 - ld [wc73e], a + ld [wSomeoneIsRampaging], a -.asm_37750 +.skip_set_rampage ld a, [AttackMissed] and a jr z, .hit @@ -61,38 +61,39 @@ BattleCommand_RolloutPower: ; 37734 ld a, [hl] ld b, a cp MAX_ROLLOUT_COUNT - jr c, .asm_3776e + jr c, .not_done_with_rollout ld a, BATTLE_VARS_SUBSTATUS1 call GetBattleVarAddr res SUBSTATUS_ROLLOUT, [hl] - jr .asm_37775 + jr .done_with_substatus_flag -.asm_3776e +.not_done_with_rollout ld a, BATTLE_VARS_SUBSTATUS1 call GetBattleVarAddr set SUBSTATUS_ROLLOUT, [hl] -.asm_37775 +.done_with_substatus_flag ld a, BATTLE_VARS_SUBSTATUS2 call GetBattleVar bit SUBSTATUS_CURLED, a - jr z, .asm_3777f + jr z, .not_curled inc b -.asm_3777f +.not_curled +.loop dec b - jr z, .asm_37790 + jr z, .done_damage ld hl, CurDamage + 1 sla [hl] dec hl rl [hl] - jr nc, .asm_3777f + jr nc, .loop ld a, $ff ld [hli], a ld [hl], a -.asm_37790 +.done_damage ret ; 37791 |