add necessary settings to rando context

This commit is contained in:
gymnast86
2026-04-21 01:32:08 -07:00
parent 7606998ba6
commit dd04da230f
6 changed files with 58 additions and 5 deletions
+8 -1
View File
@@ -36,9 +36,16 @@ namespace dusk {
return;
}
auto& world = r.GetWorlds()[0];
const auto& world = r.GetWorlds()[0];
RandomizerContext randoData{};
for (const auto& [setting, info] : *randomizer::seedgen::settings::GetAllSettingsInfo()) {
if (info->NeedInGame()) {
randoData.mSettings[setting] = world->Setting(setting).GetCurrentOption();
}
}
// Chest overrides
for (const auto& location : world->GetAllLocations()) {
const auto& metaData = location->GetMetadata();