More comment cleanup

This commit is contained in:
Christopher Leggett 2022-08-27 14:33:38 -04:00
commit 3d8b8066da
No known key found for this signature in database
GPG key ID: 7093AE5FF7037D79

View file

@ -205,16 +205,15 @@ s32 func_80AA08C4(EnMa1* this, GlobalContext* globalCtx) {
!(gSaveContext.eventChkInf[1] & 0x10) && !(gSaveContext.infTable[8] & 0x800)) { !(gSaveContext.eventChkInf[1] & 0x10) && !(gSaveContext.infTable[8] & 0x800)) {
return 1; return 1;
} }
// Causes Malon to appear at Hyrule Castle if you've met her already and either we're vanilla and Talon hasn't if ((globalCtx->sceneNum == SCENE_SPOT15) && // if we're at hyrule castle
// left Hyrule Castle, or if we're randomized and haven't obtained her check. If we haven't met Malon yet, this (!(gSaveContext.eventChkInf[1] & 0x10) || // and talon hasn't left
// sets the flag for meeting her. (gSaveContext.n64ddFlag &&
if ((globalCtx->sceneNum == SCENE_SPOT15) && (!(gSaveContext.eventChkInf[1] & 0x10) || !Randomizer_ObtainedMalonHCReward()))) { // or we're rando'd and haven't gotten malon's HC check
(gSaveContext.n64ddFlag && !Randomizer_ObtainedMalonHCReward()))) { if (gSaveContext.infTable[8] & 0x800) { // if we've met malon
if (gSaveContext.infTable[8] & 0x800) { return 1; // make her appear at the castle
return 1; } else { // if we haven't met malon
} else { gSaveContext.infTable[8] |= 0x800; // set the flag for meeting malon
gSaveContext.infTable[8] |= 0x800; return 0; // don't make her appear at the castle
return 0;
} }
} }
// Malon asleep in her bed if Talon has left Hyrule Castle and it is nighttime. // Malon asleep in her bed if Talon has left Hyrule Castle and it is nighttime.