Document Cerulean City scripts
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user