summaryrefslogtreecommitdiff
path: root/engine/predefs17.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-06-06 03:22:40 -0500
committerdannye <corrnondacqb@yahoo.com>2016-06-06 03:22:40 -0500
commita33f356461e29559950f51dbef2e2d83235ea98f (patch)
tree20a7d6dc38f69f23045cb45b34d0ef17f28bf5f2 /engine/predefs17.asm
parenta070bdcb21310c7d17b4fd057852f788fdfd61ca (diff)
Remove unused source files
Diffstat (limited to 'engine/predefs17.asm')
-rwxr-xr-xengine/predefs17.asm22
1 files changed, 14 insertions, 8 deletions
diff --git a/engine/predefs17.asm b/engine/predefs17.asm
index a674b45a..49818543 100755
--- a/engine/predefs17.asm
+++ b/engine/predefs17.asm
@@ -1,9 +1,15 @@
-; this function temporarily makes the starters (and Ivysaur) seen
-; so that the full Pokedex information gets displayed in Oak's lab
-StarterDex: ; 5c0dc (17:40dc)
- ld a, %01001011 ; set starter flags
- ld [wPokedexOwned], a
- predef ShowPokedexData
- xor a ; unset starter flags
- ld [wPokedexOwned], a
+; updates the types of a party mon (pointed to in hl) to the ones of the mon specified in wd11e
+SetPartyMonTypes: ; 5db93 (17:5b93)
+ call GetPredefRegisters
+ ld bc, wPartyMon1Type - wPartyMon1 ; $5
+ add hl, bc
+ ld a, [wd11e]
+ ld [wd0b5], a
+ push hl
+ call GetMonHeader
+ pop hl
+ ld a, [wMonHType1]
+ ld [hli], a
+ ld a, [wMonHType2]
+ ld [hl], a
ret