mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-31 07:20:14 -05:00
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:
parent
c5790d9284
commit
65d893bc85
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user