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:
mid-kid
2018-02-22 21:35:11 +01:00
parent a22343d32c
commit 3d34f5a5a3
9 changed files with 17 additions and 15 deletions

View File

@@ -128,6 +128,8 @@ SPAWN_RED EQU 2
; wPokemonWithdrawDepositParameter ; wPokemonWithdrawDepositParameter
PC_WITHDRAW EQU 0 PC_WITHDRAW EQU 0
PC_DEPOSIT EQU 1 PC_DEPOSIT EQU 1
REMOVE_PARTY EQU 0
REMOVE_BOX EQU 1
DAY_CARE_WITHDRAW EQU 2 DAY_CARE_WITHDRAW EQU 2
DAY_CARE_DEPOSIT EQU 3 DAY_CARE_DEPOSIT EQU 3

View File

@@ -203,7 +203,7 @@ BillsPCDepositFuncRelease: ; e24e0 (38:64e0)
ld hl, wBillsPC_ScrollPosition ld hl, wBillsPC_ScrollPosition
add [hl] add [hl]
ld [wCurPartyMon], a ld [wCurPartyMon], a
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
call ReleasePKMN_ByePKMN call ReleasePKMN_ByePKMN
@@ -463,7 +463,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
ld hl, wBillsPC_ScrollPosition ld hl, wBillsPC_ScrollPosition
add [hl] add [hl]
ld [wCurPartyMon], a ld [wCurPartyMon], a
ld a, PC_DEPOSIT ld a, REMOVE_BOX
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
call ReleasePKMN_ByePKMN call ReleasePKMN_ByePKMN
@@ -1821,7 +1821,7 @@ DepositPokemon: ; e307c (38:707c)
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
predef SendGetMonIntoFromBox predef SendGetMonIntoFromBox
jr c, .asm_boxisfull jr c, .asm_boxisfull
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ld a, [wCurPartySpecies] ld a, [wCurPartySpecies]
@@ -1876,7 +1876,7 @@ TryWithdrawPokemon: ; e30fa (38:70fa)
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
predef SendGetMonIntoFromBox predef SendGetMonIntoFromBox
jr c, .PartyFull jr c, .PartyFull
ld a, PC_DEPOSIT ld a, REMOVE_BOX
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ld a, [wCurPartySpecies] ld a, [wCurPartySpecies]
@@ -2113,7 +2113,7 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
call CopyMonToTemp call CopyMonToTemp
call CloseSRAM call CloseSRAM
farcall CalcBufferMonStats farcall CalcBufferMonStats
ld a, PC_DEPOSIT ld a, REMOVE_BOX
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ret ret
@@ -2146,7 +2146,7 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
ld hl, wPartyMon1Species ld hl, wPartyMon1Species
ld bc, PARTYMON_STRUCT_LENGTH ld bc, PARTYMON_STRUCT_LENGTH
call CopyMonToTemp call CopyMonToTemp
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ret ret

View File

@@ -118,7 +118,7 @@ Special_ReturnShuckle: ; 737e
cp 150 cp 150
ld a, SHUCKIE_HAPPY ld a, SHUCKIE_HAPPY
jr nc, .HappyToStayWithYou jr nc, .HappyToStayWithYou
xor a ; take from pc xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
callfar RemoveMonFromPartyOrBox callfar RemoveMonFromPartyOrBox
ld a, SHUCKIE_RETURNED ld a, SHUCKIE_RETURNED

View File

@@ -1863,7 +1863,7 @@ LinkTrade: ; 28b87
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
ld [wd002], a ld [wd002], a
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
callfar RemoveMonFromPartyOrBox callfar RemoveMonFromPartyOrBox
ld a, [wPartyCount] ld a, [wPartyCount]

View File

@@ -175,7 +175,7 @@ CheckPokeItem:: ; 44654
farcall CheckCurPartyMonFainted farcall CheckCurPartyMonFainted
ld a, POKEMAIL_LAST_MON ld a, POKEMAIL_LAST_MON
jr c, .close_sram_return jr c, .close_sram_return
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ld a, POKEMAIL_CORRECT ld a, POKEMAIL_CORRECT

View File

@@ -918,7 +918,7 @@ GetLastPartyMon: ; de1a
DepositMonWithDayCareMan: ; de2a DepositMonWithDayCareMan: ; de2a
ld de, wBreedMon1Nick ld de, wBreedMon1Nick
call DepositBreedmon call DepositBreedmon
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
jp RemoveMonFromPartyOrBox jp RemoveMonFromPartyOrBox
; de37 ; de37
@@ -926,7 +926,7 @@ DepositMonWithDayCareMan: ; de2a
DepositMonWithDayCareLady: ; de37 DepositMonWithDayCareLady: ; de37
ld de, wBreedMon2Nick ld de, wBreedMon2Nick
call DepositBreedmon call DepositBreedmon
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
jp RemoveMonFromPartyOrBox jp RemoveMonFromPartyOrBox
; de44 ; de44

View File

@@ -185,8 +185,8 @@ DoNPCTrade: ; fcc63
ld a, [wOTTrademonSpecies] ld a, [wOTTrademonSpecies]
ld [wCurPartySpecies], a ld [wCurPartySpecies], a
xor a xor a
ld [wMonType], a ld [wMonType], a ; PARTYMON
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a ; REMOVE_PARTY
callfar RemoveMonFromPartyOrBox callfar RemoveMonFromPartyOrBox
predef TryAddMonToParty predef TryAddMonToParty

View File

@@ -5410,7 +5410,7 @@ Function1023c6: ; 1023c6
ld a, [wcd4c] ld a, [wcd4c]
dec a dec a
ld [wCurPartyMon], a ld [wCurPartyMon], a
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
ld hl, wPartyCount ld hl, wPartyCount

View File

@@ -7323,7 +7323,7 @@ Function11b5c0: ; 11b5c0
ld a, [wcd82] ld a, [wcd82]
dec a dec a
ld [wCurPartyMon], a ld [wCurPartyMon], a
xor a xor a ; REMOVE_PARTY
ld [wPokemonWithdrawDepositParameter], a ld [wPokemonWithdrawDepositParameter], a
farcall RemoveMonFromPartyOrBox farcall RemoveMonFromPartyOrBox
farcall Function170807 farcall Function170807