summaryrefslogtreecommitdiff
path: root/home/mon_data.asm
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2020-02-22 12:52:13 +0100
committermid-kid <esteve.varela@gmail.com>2020-02-22 12:52:13 +0100
commit7bd8d56ff93e14839d304cc3a3a2a182e992f909 (patch)
treedbf48363b85804dadedfbd59e3b5d9336e844804 /home/mon_data.asm
parent43eff93861b5b00473e567e6449c64f039f8f4ba (diff)
Implement suggestions in PR #687
Merge mon_stats.asm, cry.asm, print_level.asm, and mon_data.asm into pokemon.asm Merge mon_party.asm into battle.asm Merge menu.asm, menu_window.asm, and menu2.asm into menu.asm
Diffstat (limited to 'home/mon_data.asm')
-rw-r--r--home/mon_data.asm87
1 files changed, 0 insertions, 87 deletions
diff --git a/home/mon_data.asm b/home/mon_data.asm
deleted file mode 100644
index f365f019c..000000000
--- a/home/mon_data.asm
+++ /dev/null
@@ -1,87 +0,0 @@
-Unreferenced_GetNthMove::
- ld hl, wListMoves_MoveIndicesBuffer
- ld c, a
- ld b, 0
- add hl, bc
- ld a, [hl]
- ret
-
-GetBaseData::
- push bc
- push de
- push hl
- ldh a, [hROMBank]
- push af
- ld a, BANK(BaseData)
- rst Bankswitch
-
-; Egg doesn't have BaseData
- ld a, [wCurSpecies]
- cp EGG
- jr z, .egg
-
-; Get BaseData
- dec a
- ld bc, BASE_DATA_SIZE
- ld hl, BaseData
- call AddNTimes
- ld de, wCurBaseData
- ld bc, BASE_DATA_SIZE
- call CopyBytes
- jr .end
-
-.egg
- ld de, UnknownEggPic
-
-; Sprite dimensions
- ld b, $55 ; 5x5
- ld hl, wBasePicSize
- ld [hl], b
-
-; Beta front and back sprites
-; (see pokegold-spaceworld's data/pokemon/base_stats/*)
- ld hl, wBaseUnusedFrontpic
- ld [hl], e
- inc hl
- ld [hl], d
- inc hl
- ld [hl], e
- inc hl
- ld [hl], d
- jr .end ; useless
-
-.end
-; Replace Pokedex # with species
- ld a, [wCurSpecies]
- ld [wBaseDexNo], a
-
- pop af
- rst Bankswitch
- pop hl
- pop de
- pop bc
- ret
-
-GetCurNick::
- ld a, [wCurPartyMon]
- ld hl, wPartyMonNicknames
-
-GetNick::
-; Get nickname a from list hl.
-
- push hl
- push bc
-
- call SkipNames
- ld de, wStringBuffer1
-
- push de
- ld bc, MON_NAME_LENGTH
- call CopyBytes
- pop de
-
- callfar CorrectNickErrors
-
- pop bc
- pop hl
- ret