mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
movemon and removepokemon wram variables
This commit is contained in:
parent
4a8c9993ad
commit
bcfca2e267
8 changed files with 66 additions and 51 deletions
|
|
@ -793,7 +793,7 @@ TradeCenter_Trade:
|
|||
ld a, [hl]
|
||||
ld [wTradedPlayerMonSpecies], a
|
||||
xor a
|
||||
ld [wcf95], a
|
||||
ld [wRemoveMonFromBox], a
|
||||
call RemovePokemon
|
||||
ld a, [wTradingWhichEnemyMon]
|
||||
ld c, a
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ InGameTrade_DoTrade: ; 71c07 (1c:5c07)
|
|||
ld [wcf91],a
|
||||
xor a
|
||||
ld [wcc49],a
|
||||
ld [wcf95],a
|
||||
ld [wRemoveMonFromBox],a
|
||||
call RemovePokemon
|
||||
ld a,$80
|
||||
ld [wcc49],a
|
||||
|
|
|
|||
|
|
@ -229,11 +229,11 @@ BillsPCDeposit:
|
|||
ld a, [wcf91]
|
||||
call GetCryData
|
||||
call PlaySoundWaitForCurrent
|
||||
ld a, $1
|
||||
ld [wcf95], a
|
||||
ld a, PARTY_TO_BOX
|
||||
ld [wMoveMonType], a
|
||||
call MoveMon
|
||||
xor a
|
||||
ld [wcf95], a
|
||||
ld [wRemoveMonFromBox], a
|
||||
call RemovePokemon
|
||||
call WaitForSoundToFinish
|
||||
ld hl, wWhichTrade
|
||||
|
|
@ -281,11 +281,11 @@ Func_21618: ; 21618 (8:5618)
|
|||
ld a, [wcf91]
|
||||
call GetCryData
|
||||
call PlaySoundWaitForCurrent
|
||||
xor a
|
||||
ld [wcf95], a
|
||||
xor a ; BOX_TO_PARTY
|
||||
ld [wMoveMonType], a
|
||||
call MoveMon
|
||||
ld a, $1
|
||||
ld [wcf95], a
|
||||
ld a, 1
|
||||
ld [wRemoveMonFromBox], a
|
||||
call RemovePokemon
|
||||
call WaitForSoundToFinish
|
||||
ld hl, MonIsTakenOutText
|
||||
|
|
@ -310,7 +310,7 @@ Func_21673: ; 21673 (8:5673)
|
|||
and a
|
||||
jr nz, .asm_21682
|
||||
inc a
|
||||
ld [wcf95], a
|
||||
ld [wRemoveMonFromBox], a
|
||||
call RemovePokemon
|
||||
call WaitForSoundToFinish
|
||||
ld a, [wcf91]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue