aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/9.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2015-04-01 11:41:20 +0200
committerxCrystal <rgr.crystal@gmail.com>2015-04-01 17:05:43 +0200
commit46c2a38c7c55ff01e8787dfd624cb1c771248b6c (patch)
tree6b8590d765cbb93f40fdb59d39f3a3e5d8ddb28e /engine/battle/9.asm
parentRename battle files and split move effects Part 1 (diff)
downloadpokeyellow-46c2a38c7c55ff01e8787dfd624cb1c771248b6c.tar.gz
pokeyellow-46c2a38c7c55ff01e8787dfd624cb1c771248b6c.tar.xz
pokeyellow-46c2a38c7c55ff01e8787dfd624cb1c771248b6c.zip
Rename battle files and split move effects Part 2
5.asm, 9.asm, and a.asm
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]engine/battle/save_trainer_name.asm (renamed from engine/battle/9.asm)78
1 files changed, 0 insertions, 78 deletions
diff --git a/engine/battle/9.asm b/engine/battle/save_trainer_name.asm
index e7265f41..84ef1f69 100755..100644
--- a/engine/battle/9.asm
+++ b/engine/battle/save_trainer_name.asm
@@ -1,56 +1,3 @@
-; [wd0b5] = pokemon ID
-; hl = dest addr
-PrintMonType: ; 27d6b (9:7d6b)
- call GetPredefRegisters
- push hl
- call GetMonHeader
- pop hl
- push hl
- ld a, [W_MONHTYPE1]
- call PrintType
- ld a, [W_MONHTYPE1]
- ld b, a
- ld a, [W_MONHTYPE2]
- cp b
- pop hl
- jr z, EraseType2Text
- ld bc, SCREEN_WIDTH * 2
- add hl, bc
-
-; a = type
-; hl = dest addr
-PrintType: ; 27d89 (9:7d89)
- push hl
- jr PrintType_
-
-; erase "TYPE2/" if the mon only has 1 type
-EraseType2Text: ; 27d8c (9:7d8c)
- ld a, " "
- ld bc, $13
- add hl, bc
- ld bc, $6
- jp FillMemory
-
-PrintMoveType: ; 27d98 (9:7d98)
- call GetPredefRegisters
- push hl
- ld a, [W_PLAYERMOVETYPE]
-; fall through
-
-PrintType_: ; 27d9f (9:7d9f)
- add a
- ld hl, TypeNames
- ld e, a
- ld d, $0
- add hl, de
- ld a, [hli]
- ld e, a
- ld d, [hl]
- pop hl
- jp PlaceString
-
-INCLUDE "text/type_names.asm"
-
SaveTrainerName: ; 27e4a (9:7e4a)
ld hl,TrainerNamePointers
ld a,[W_TRAINERCLASS]
@@ -163,28 +110,3 @@ CooltrainerMName: ; 27f6c (9:7f6c)
db "COOLTRAINER♂@"
CooltrainerFName: ; 27f79 (9:7f79)
db "COOLTRAINER♀@"
-
-FocusEnergyEffect_: ; 27f86 (9:7f86)
- ld hl, W_PLAYERBATTSTATUS2
- ld a, [H_WHOSETURN]
- and a
- jr z, .notEnemy
- ld hl, W_ENEMYBATTSTATUS2
-.notEnemy
- bit GettingPumped, [hl] ; is mon already using focus energy?
- jr nz, .alreadyUsing
- set GettingPumped, [hl] ; mon is now using focus energy
- callab PlayCurrentMoveAnimation
- ld hl, GettingPumpedText
- jp PrintText
-.alreadyUsing
- ld c, $32
- call DelayFrames
- ld hl, PrintButItFailedText_
- ld b, BANK(PrintButItFailedText_)
- jp Bankswitch
-
-GettingPumpedText: ; 27fb3 (9:7fb3)
- db $0a
- TX_FAR _GettingPumpedText
- db "@"