From 2eea59dbd1bda5fa1be4bbd3b73abd4004d49cd3 Mon Sep 17 00:00:00 2001 From: Phlex Date: Mon, 15 Jul 2024 13:31:36 -0600 Subject: [PATCH] Adjust reset form if we're only in boss environments. --- code/source/rnd/link.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/code/source/rnd/link.cpp b/code/source/rnd/link.cpp index fb02f74..9adb910 100644 --- a/code/source/rnd/link.cpp +++ b/code/source/rnd/link.cpp @@ -385,9 +385,13 @@ namespace rnd::link { } void ResetPlayerForm() { - game::SaveData& saveData = game::GetCommonData().save; - saveData.mask = game::MaskId::None; - saveData.player_form = game::act::Player::Form::Human; + game::SceneId scene = GetContext().gctx->scene; + if (scene == game::SceneId::OdolwaLair || scene == game::SceneId::GohtLair || scene == game::SceneId::GyorgLair || + scene == game::SceneId::TwinmoldLair) { + game::SaveData& saveData = game::GetCommonData().save; + saveData.mask = game::MaskId::None; + saveData.player_form = game::act::Player::Form::Human; + } } }