mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Label wPokemonWithdrawDepositParameter of RemoveMonFromPartyOrBox
It takes a clearly different parameter, completely unrelated and different in function to PC_DEPOSIT and PC_WITHDRAW.
This commit is contained in:
parent
a22343d32c
commit
3d34f5a5a3
@ -128,6 +128,8 @@ SPAWN_RED EQU 2
|
||||
; wPokemonWithdrawDepositParameter
|
||||
PC_WITHDRAW EQU 0
|
||||
PC_DEPOSIT EQU 1
|
||||
REMOVE_PARTY EQU 0
|
||||
REMOVE_BOX EQU 1
|
||||
DAY_CARE_WITHDRAW EQU 2
|
||||
DAY_CARE_DEPOSIT EQU 3
|
||||
|
||||
|
@ -203,7 +203,7 @@ BillsPCDepositFuncRelease: ; e24e0 (38:64e0)
|
||||
ld hl, wBillsPC_ScrollPosition
|
||||
add [hl]
|
||||
ld [wCurPartyMon], a
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
call ReleasePKMN_ByePKMN
|
||||
@ -463,7 +463,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
ld hl, wBillsPC_ScrollPosition
|
||||
add [hl]
|
||||
ld [wCurPartyMon], a
|
||||
ld a, PC_DEPOSIT
|
||||
ld a, REMOVE_BOX
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
call ReleasePKMN_ByePKMN
|
||||
@ -1821,7 +1821,7 @@ DepositPokemon: ; e307c (38:707c)
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
predef SendGetMonIntoFromBox
|
||||
jr c, .asm_boxisfull
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ld a, [wCurPartySpecies]
|
||||
@ -1876,7 +1876,7 @@ TryWithdrawPokemon: ; e30fa (38:70fa)
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
predef SendGetMonIntoFromBox
|
||||
jr c, .PartyFull
|
||||
ld a, PC_DEPOSIT
|
||||
ld a, REMOVE_BOX
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ld a, [wCurPartySpecies]
|
||||
@ -2113,7 +2113,7 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
|
||||
call CopyMonToTemp
|
||||
call CloseSRAM
|
||||
farcall CalcBufferMonStats
|
||||
ld a, PC_DEPOSIT
|
||||
ld a, REMOVE_BOX
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ret
|
||||
@ -2146,7 +2146,7 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
|
||||
ld hl, wPartyMon1Species
|
||||
ld bc, PARTYMON_STRUCT_LENGTH
|
||||
call CopyMonToTemp
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ret
|
||||
|
@ -118,7 +118,7 @@ Special_ReturnShuckle: ; 737e
|
||||
cp 150
|
||||
ld a, SHUCKIE_HAPPY
|
||||
jr nc, .HappyToStayWithYou
|
||||
xor a ; take from pc
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
callfar RemoveMonFromPartyOrBox
|
||||
ld a, SHUCKIE_RETURNED
|
||||
|
@ -1863,7 +1863,7 @@ LinkTrade: ; 28b87
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld [wd002], a
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
callfar RemoveMonFromPartyOrBox
|
||||
ld a, [wPartyCount]
|
||||
|
@ -175,7 +175,7 @@ CheckPokeItem:: ; 44654
|
||||
farcall CheckCurPartyMonFainted
|
||||
ld a, POKEMAIL_LAST_MON
|
||||
jr c, .close_sram_return
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ld a, POKEMAIL_CORRECT
|
||||
|
@ -918,7 +918,7 @@ GetLastPartyMon: ; de1a
|
||||
DepositMonWithDayCareMan: ; de2a
|
||||
ld de, wBreedMon1Nick
|
||||
call DepositBreedmon
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
jp RemoveMonFromPartyOrBox
|
||||
; de37
|
||||
@ -926,7 +926,7 @@ DepositMonWithDayCareMan: ; de2a
|
||||
DepositMonWithDayCareLady: ; de37
|
||||
ld de, wBreedMon2Nick
|
||||
call DepositBreedmon
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
jp RemoveMonFromPartyOrBox
|
||||
; de44
|
||||
|
@ -185,8 +185,8 @@ DoNPCTrade: ; fcc63
|
||||
ld a, [wOTTrademonSpecies]
|
||||
ld [wCurPartySpecies], a
|
||||
xor a
|
||||
ld [wMonType], a
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
ld [wMonType], a ; PARTYMON
|
||||
ld [wPokemonWithdrawDepositParameter], a ; REMOVE_PARTY
|
||||
callfar RemoveMonFromPartyOrBox
|
||||
predef TryAddMonToParty
|
||||
|
||||
|
@ -5410,7 +5410,7 @@ Function1023c6: ; 1023c6
|
||||
ld a, [wcd4c]
|
||||
dec a
|
||||
ld [wCurPartyMon], a
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
ld hl, wPartyCount
|
||||
|
@ -7323,7 +7323,7 @@ Function11b5c0: ; 11b5c0
|
||||
ld a, [wcd82]
|
||||
dec a
|
||||
ld [wCurPartyMon], a
|
||||
xor a
|
||||
xor a ; REMOVE_PARTY
|
||||
ld [wPokemonWithdrawDepositParameter], a
|
||||
farcall RemoveMonFromPartyOrBox
|
||||
farcall Function170807
|
||||
|
Loading…
Reference in New Issue
Block a user