Skip to content

Commit

Permalink
Implement Cow of Time enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguerant authored and NEstelami committed Jun 6, 2022
1 parent 38ec6ea commit c08439a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libultraship/libultraship/SohImGuiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ namespace SohImGui {
Tooltip("The default response to Kaepora Gaebora is always that you understood what he said");
EnhancementCheckbox("Disable Navi Call Audio", "gDisableNaviCallAudio");
Tooltip("Disables the voice audio when Navi calls you");
EnhancementCheckbox("Link's Cow in Both Time Periods", "gCowOfTime");
Tooltip("Allows the Lon Lon Ranch obstacle course reward to be shared across time periods");
ImGui::EndMenu();
}

Expand Down
2 changes: 1 addition & 1 deletion soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void EnCow_Init(Actor* thisx, GlobalContext* globalCtx) {
func_809DEE9C(this);
this->actionFunc = func_809DF96C;
if (globalCtx->sceneNum == SCENE_LINK_HOME) {
if (!LINK_IS_ADULT) {
if (!LINK_IS_ADULT && !CVar_GetS32("gCowOfTime", 0)) {
Actor_Kill(&this->actor);
return;
}
Expand Down

0 comments on commit c08439a

Please sign in to comment.