summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtherBlue <93625085+OtherBlue@users.noreply.github.com>2026-06-25 10:59:22 -0300
committerGitHub <noreply@github.com>2026-06-25 09:59:22 -0400
commit4c03e786fb052e7ea9015a71fb8356c09de094e6 (patch)
tree76faf03030b6b0325ff458bf69e420f0617d0441
parent2fdd9a8c0a92d65cea59ea2498be65654c8e67c9 (diff)
Update HyruleWarriorsStyledLink.cpp (#1743)
-rw-r--r--mm/2s2h/Enhancements/Modes/HyruleWarriorsStyledLink.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/2s2h/Enhancements/Modes/HyruleWarriorsStyledLink.cpp b/mm/2s2h/Enhancements/Modes/HyruleWarriorsStyledLink.cpp
index 8ddaba0cb..fd3d56b74 100644
--- a/mm/2s2h/Enhancements/Modes/HyruleWarriorsStyledLink.cpp
+++ b/mm/2s2h/Enhancements/Modes/HyruleWarriorsStyledLink.cpp
@@ -12,6 +12,8 @@ extern const char* D_801C0B20[28];
#define CVAR_NAME "gModes.HyruleWarriorsStyledLink"
#define CVAR CVarGetInteger(CVAR_NAME, 0)
+#define CHECK_KEATON_GIVEN_ON_MOON() (gSaveContext.masksGivenOnMoon[0] & 0x10)
+
void RegisterHyruleWarriorsStyledLink() {
COND_ID_HOOK(OnPlayerPostLimbDraw, PLAYER_LIMB_HEAD, CVAR, [](Player* player, s32 limbIndex) {
// This emulates the vanilla check for if the masks should be drawn, specifically around
@@ -25,7 +27,7 @@ void RegisterHyruleWarriorsStyledLink() {
}
if (player->currentMask == PLAYER_MASK_NONE && player->transformation == PLAYER_FORM_HUMAN &&
- INV_CONTENT(ITEM_MASK_KEATON) == ITEM_MASK_KEATON) {
+ INV_CONTENT(ITEM_MASK_KEATON) == ITEM_MASK_KEATON && !CHECK_KEATON_GIVEN_ON_MOON()) {
OPEN_DISPS(gPlayState->state.gfxCtx);
Matrix_Push();
Matrix_RotateYS(0x38e3, MTXMODE_APPLY);