Skip to content

Commit

Permalink
Adjust reset form if we're only in boss environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico committed Jul 15, 2024
1 parent 291f8c1 commit 2eea59d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/source/rnd/link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit 2eea59d

Please sign in to comment.