diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-22 18:13:20 -0400 |
commit | 15427f532085846ab6b51719be687951a094cb6c (patch) | |
tree | edea9b189e91641a12dd521756894df84aeeace7 /engine/predefs17_2.asm | |
parent | ea3ba4cde3706b7c77efb705555ec0c86321cbe2 (diff) |
Pull a lot of engine out of main.asm
Diffstat (limited to 'engine/predefs17_2.asm')
-rwxr-xr-x | engine/predefs17_2.asm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engine/predefs17_2.asm b/engine/predefs17_2.asm new file mode 100755 index 00000000..a1c4ff30 --- /dev/null +++ b/engine/predefs17_2.asm @@ -0,0 +1,15 @@ +; updates the types of a party mon (pointed to in hl) to the ones of the mon specified in $d11e +SetPartyMonTypes: ; 5db5e (17:5b5e) + call Load16BitRegisters + ld bc, W_PARTYMON1_TYPE1 - W_PARTYMON1DATA ; $5 + add hl, bc + ld a, [$d11e] + ld [$d0b5], a + push hl + call GetMonHeader + pop hl + ld a, [W_MONHTYPE1] + ld [hli], a + ld a, [W_MONHTYPE2] + ld [hl], a + ret |