mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-20 21:33:28 -04:00
update generator with hint stuff
This commit is contained in:
@@ -138,14 +138,21 @@ namespace randomizer
|
||||
}
|
||||
logic::fill::CacheExitTimeForms(this->_worlds);
|
||||
|
||||
// Flattening isn't used for anything yet, but flattens down the requirements for
|
||||
// each location and entrance into a single statement. This will be useful for hints and could potentially
|
||||
// be used to speed up the fill algorithm (but the fill algorithm is already pretty fast, so we'd only gain maybe like
|
||||
// 0.2 seconds back or something)
|
||||
// Flattens down the requirements for each location and entrance into a single statement.
|
||||
// This is used for calculating hint importance.
|
||||
utility::platform::Log("Flattening...");
|
||||
FlattenSearch search = FlattenSearch(this->_worlds.at(0).get());
|
||||
search.doSearch();
|
||||
|
||||
// Set chain locations once the flatten search is done
|
||||
for (auto& world : this->_worlds) {
|
||||
for (auto& location : world->GetAllLocations()) {
|
||||
for (auto& item : location->GetComputedRequirement().getItems(world.get())) {
|
||||
item->AddChainLocation(location);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
utility::platform::Log("Filling Worlds...");
|
||||
logic::fill::FillWorlds(this->_worlds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user