From eef75f9664ebaa89229747725e2921c02398cce5 Mon Sep 17 00:00:00 2001 From: Anthony Stewart Date: Wed, 14 May 2025 19:31:05 -0500 Subject: [PATCH] ACPUE, recalculate only if save loaded. ACR, set age and times for the starting region. --- soh/soh/Enhancements/debugconsole.cpp | 6 +++++- soh/soh/Enhancements/randomizer/3drando/fill.cpp | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/soh/soh/Enhancements/debugconsole.cpp b/soh/soh/Enhancements/debugconsole.cpp index 2b1d70538..32fc8e72f 100644 --- a/soh/soh/Enhancements/debugconsole.cpp +++ b/soh/soh/Enhancements/debugconsole.cpp @@ -1470,7 +1470,11 @@ static bool AvailabeChecksProcessUndiscoveredExitsHandler(std::shared_ptrACProcessUndiscoveredExits = enabled; INFO_MESSAGE("[SOH] Available Checks - Process Undiscovered Exits %s", logic->ACProcessUndiscoveredExits ? "enabled" : "disabled"); - CheckTracker::RecalculateAvailableChecks(); + + if (GameInteractor::IsSaveLoaded(true)) { + CheckTracker::RecalculateAvailableChecks(); + } + return 0; } diff --git a/soh/soh/Enhancements/randomizer/3drando/fill.cpp b/soh/soh/Enhancements/randomizer/3drando/fill.cpp index c71794a36..08e6d5823 100644 --- a/soh/soh/Enhancements/randomizer/3drando/fill.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/fill.cpp @@ -534,10 +534,24 @@ std::vector ReachabilitySearch(const std::vectorGetOption(RSK_SELECTED_STARTING_AGE).Is(RO_AGE_CHILD)) { + region->childDay = true; + } else { + region->adultDay = true; + } + if (region->timePass) { + if (ctx->GetOption(RSK_SELECTED_STARTING_AGE).Is(RO_AGE_CHILD)) { + region->childNight = true; + } else { + region->adultNight = true; + } + } } - ResetLogic(ctx, gals, !calculatingAvailableChecks); if (calculatingAvailableChecks) { logic->Reset(false); logic->CalculatingAvailableChecks = true;