summaryrefslogtreecommitdiff
path: root/src/pokemon.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-14 14:48:25 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-14 16:41:38 -0500
commitf544f6e356d5bdee868e685a537e18a69aed1890 (patch)
tree7c3fa31eb13b05953c1eca68b90ef0b4eaa04095 /src/pokemon.c
parent8c560386edeecf0b40b4c9f58ceaac50f4f22397 (diff)
Document Cerulean City scripts
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index 99fe39709..39019421c 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -3632,7 +3632,7 @@ static u8 SendMonToPC(struct Pokemon* mon)
{
s32 boxNo, boxPos;
- set_unknown_box_id(VarGet(VAR_0x4037));
+ SetPCBoxToSendMon(VarGet(VAR_PC_BOX_TO_SEND_MON));
boxNo = StorageGetCurrentBox();
@@ -3647,9 +3647,9 @@ static u8 SendMonToPC(struct Pokemon* mon)
CopyMon(checkingMon, &mon->box, sizeof(mon->box));
gSpecialVar_MonBoxId = boxNo;
gSpecialVar_MonBoxPos = boxPos;
- if (get_unknown_box_id() != boxNo)
+ if (GetPCBoxToSendMon() != boxNo)
FlagClear(FLAG_SYS_CHANGED_BOX_TO_STORE_MON);
- VarSet(VAR_0x4037, boxNo);
+ VarSet(VAR_PC_BOX_TO_SEND_MON, boxNo);
return MON_GIVEN_TO_PC;
}
}