diff options
author | xCrystal <rgr.crystal@gmail.com> | 2015-04-01 16:16:43 +0200 |
---|---|---|
committer | xCrystal <rgr.crystal@gmail.com> | 2015-04-01 17:05:49 +0200 |
commit | 77d0e5ff84cc61ae625da19f184094241eddd4dc (patch) | |
tree | 921ae74206ff3b396cc3423a0b699b4563239a96 /engine/battle/c.asm | |
parent | 46c2a38c7c55ff01e8787dfd624cb1c771248b6c (diff) |
Rename battle files and split move effects Part 3
b.asm, b_2.asm, c.asm, and d.asm
Diffstat (limited to 'engine/battle/c.asm')
-rwxr-xr-x | engine/battle/c.asm | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/engine/battle/c.asm b/engine/battle/c.asm deleted file mode 100755 index b7c20ef6..00000000 --- a/engine/battle/c.asm +++ /dev/null @@ -1,58 +0,0 @@ -MistEffect_: ; 33f2b (c:7f2b) - ld hl, W_PLAYERBATTSTATUS2 - ld a, [$fff3] - and a - jr z, .asm_33f36 - ld hl, W_ENEMYBATTSTATUS2 -.asm_33f36 - bit ProtectedByMist, [hl] ; is mon protected by mist? - jr nz, .asm_33f4a - set ProtectedByMist, [hl] ; mon is now protected by mist - callab PlayCurrentMoveAnimation - ld hl, ShroudedInMistText - jp PrintText -.asm_33f4a - ld hl, PrintButItFailedText_ - ld b, BANK(PrintButItFailedText_) - jp Bankswitch - -ShroudedInMistText: ; 33f52 (c:7f52) - TX_FAR _ShroudedInMistText - db "@" - -OneHitKOEffect_: ; 33f57 (c:7f57) - ld hl, W_DAMAGE - xor a - ld [hli], a - ld [hl], a ; set the damage output to zero - dec a - ld [wCriticalHitOrOHKO], a - ld hl, wBattleMonSpeed + 1 - ld de, wEnemyMonSpeed + 1 - ld a, [H_WHOSETURN] ; $fff3 - and a - jr z, .asm_33f72 - ld hl, wEnemyMonSpeed + 1 - ld de, wBattleMonSpeed + 1 -.asm_33f72 - ld a, [de] - dec de - ld b, a - ld a, [hld] - sub b - ld a, [de] - ld b, a - ld a, [hl] - sbc b - jr c, .asm_33f8a - ld hl, W_DAMAGE - ld a, $ff - ld [hli], a - ld [hl], a - ld a, $2 - ld [wCriticalHitOrOHKO], a - ret -.asm_33f8a - ld a, $1 - ld [W_MOVEMISSED], a - ret |