Fix a seed gen bug surrounding new area enum (#3497)

* Fix a seed gen bug surrounding new area enum

* Sets areas after shuffling entrances.
This commit is contained in:
Christopher Leggett 2023-12-08 13:07:27 -05:00 committed by GitHub
parent c5790d9284
commit 65d893bc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1026,6 +1026,7 @@ int Fill() {
}
printf("\x1b[7;32HDone");
}
SetAreas();
//erase temporary shop items
FilterAndEraseFromPool(ItemPool, [](const auto item) { return Rando::StaticData::RetrieveItem(item).GetItemType() == ITEMTYPE_SHOP; });
@ -1137,7 +1138,6 @@ int Fill() {
if(ctx->playthroughBeatable && !placementFailure) {
printf("Done");
printf("\x1b[9;10HCalculating Playthrough...");
SetAreas();
PareDownPlaythrough();
CalculateWotH();
CalculateBarren();

View File

@ -30,7 +30,7 @@ int Playthrough_Init(uint32_t seed, std::unordered_map<RandomizerSettingKey, uin
std::string settingsStr;
for (const Rando::OptionGroup& optionGroup : ctx->GetSettings()->GetOptionGroups()) {
// don't go through non-menus
if (optionGroup.GetContainsType() != Rando::OptionGroupType::SUBGROUP) {
if (optionGroup.GetContainsType() == Rando::OptionGroupType::SUBGROUP) {
continue;
}