mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-29 19:18:58 -07:00
Fix failure to assign areas to regions on initial spoiler load (#5540)
This commit is contained in:
parent
de96f3cd0a
commit
f0e36c2694
3 changed files with 6 additions and 1 deletions
|
@ -56,6 +56,7 @@ struct GetAccessibleLocationsStruct {
|
||||||
void ClearProgress();
|
void ClearProgress();
|
||||||
void VanillaFill();
|
void VanillaFill();
|
||||||
int Fill();
|
int Fill();
|
||||||
|
void SetAreas();
|
||||||
|
|
||||||
std::vector<RandomizerCheck> GetEmptyLocations(std::vector<RandomizerCheck> allowedLocations);
|
std::vector<RandomizerCheck> GetEmptyLocations(std::vector<RandomizerCheck> allowedLocations);
|
||||||
|
|
||||||
|
|
|
@ -400,9 +400,9 @@ void Context::ParseSpoiler(const char* spoilerFileName) {
|
||||||
ParseHashIconIndexesJson(spoilerFileJson);
|
ParseHashIconIndexesJson(spoilerFileJson);
|
||||||
Rando::Settings::GetInstance()->ParseJson(spoilerFileJson);
|
Rando::Settings::GetInstance()->ParseJson(spoilerFileJson);
|
||||||
ParseItemLocationsJson(spoilerFileJson);
|
ParseItemLocationsJson(spoilerFileJson);
|
||||||
ParseHintJson(spoilerFileJson);
|
|
||||||
ParseTricksJson(spoilerFileJson);
|
ParseTricksJson(spoilerFileJson);
|
||||||
mEntranceShuffler->ParseJson(spoilerFileJson);
|
mEntranceShuffler->ParseJson(spoilerFileJson);
|
||||||
|
ParseHintJson(spoilerFileJson);
|
||||||
mDungeons->ParseJson(spoilerFileJson);
|
mDungeons->ParseJson(spoilerFileJson);
|
||||||
mTrials->ParseJson(spoilerFileJson);
|
mTrials->ParseJson(spoilerFileJson);
|
||||||
mSpoilerLoaded = true;
|
mSpoilerLoaded = true;
|
||||||
|
|
|
@ -1666,6 +1666,10 @@ void EntranceShuffler::ParseJson(nlohmann::json spoilerFileJson) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) { throw e; }
|
} catch (const std::exception& e) { throw e; }
|
||||||
|
// We may need to reset more things here or elsewhere in spoiler loading
|
||||||
|
RegionTable_Init();
|
||||||
|
ApplyEntranceOverrides();
|
||||||
|
SetAreas();
|
||||||
}
|
}
|
||||||
|
|
||||||
void EntranceShuffler::ApplyEntranceOverrides() {
|
void EntranceShuffler::ApplyEntranceOverrides() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue