Properly store starting age in spoiler log (#4873)

* properly store starting age in spoiler log

* convert ResolvedStatingAge to a setting to store it in the save
This commit is contained in:
Pepper0ni 2025-01-15 12:05:52 +00:00 committed by GitHub
commit ce289c0be9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 32 additions and 39 deletions

View file

@ -490,7 +490,7 @@ void CheckTrackerLoadGame(int32_t fileNum) {
}
}
if (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_LINKS_POCKET) != RO_LINKS_POCKET_NOTHING && IS_RANDO) {
s8 startingAge = OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_STARTING_AGE);
uint8_t startingAge = OTRGlobals::Instance->gRandoContext->GetOption(RSK_SELECTED_STARTING_AGE).GetContextOptionIndex();
RandomizerCheckArea startingArea;
switch (startingAge) {
case RO_AGE_CHILD: