Created
January 12, 2020 11:05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// v1.0.0 | |
void LastBoss::xxxxx::xxxxx(...) { | |
// ... | |
if (stuff) { | |
if (isStunFlagSet() || status == 0x15) { | |
resetStunFlag(); // this then allows the player to stun Ganon again | |
status = 0x15; | |
} | |
} | |
else if (shouldStun && lastBoss->isPlayerUnderGanon()) { | |
setStunFlag(); | |
status = 0x16; // 0x16 = stunned? | |
} | |
// ... | |
} | |
// v1.5.0 | |
void LastBoss::xxxxx::xxxxx(...) { | |
// ... | |
const bool preventStun = | |
aoc2::sInstance && | |
aoc2::sInstance->isHardModeEnabled() && | |
aoc2::sInstance->aocFlags & aoc2::Flag::PatchGanonStunLock && | |
this->actor->lastBossFlags & LastBoss::Flag::IsSecondHalf; | |
if (stuff) { | |
if ((isStunFlagSet() || status == 0x15) && !preventStun) { | |
resetStunFlag(); // this then allows the player to stun Ganon again | |
status = 0x15; | |
} | |
} | |
else if (shouldStun && !preventStun && lastBoss->isPlayerUnderGanon()) { | |
setStunFlag(); | |
status = 0x16; // 0x16 = stunned? | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment