mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-28 23:45:45 -04:00
explicitly define item list for item hints
This commit is contained in:
@@ -526,17 +526,43 @@ namespace randomizer::logic::hints {
|
||||
}
|
||||
|
||||
void HintGenerator::GenerateItemHints() {
|
||||
|
||||
std::set<std::string> itemHintItems = {
|
||||
"Magic Armor",
|
||||
"Zora Armor",
|
||||
"Shadow Crystal",
|
||||
"Progressive Wallet",
|
||||
"Progressive Sword",
|
||||
"Gale Boomerang",
|
||||
"Spinner",
|
||||
"Ball and Chain",
|
||||
"Progressive Bow",
|
||||
"Progressive Clawshot",
|
||||
"Iron Boots",
|
||||
"Progressive Dominion Rod",
|
||||
"Lantern",
|
||||
"Progressive Fishing Rod",
|
||||
"Slingshot",
|
||||
"Bomb Bag",
|
||||
"Aurus Memo",
|
||||
"Asheis Sketch",
|
||||
"Progressive Mirror Shard",
|
||||
"Progressive Fused Shadow",
|
||||
};
|
||||
|
||||
location::LocationPool possibleItemHintLocations{};
|
||||
for (auto location : this->_world->GetAllLocations()) {
|
||||
// If the location is progression...
|
||||
// and has a major item...
|
||||
// and does not have an expected item...
|
||||
// and is not already hinted...
|
||||
// and is part of our list of items that can be item hinted...
|
||||
// then it can be hinted as an item hint
|
||||
if (location->IsProgression() &&
|
||||
location->GetCurrentItem()->IsMajor() &&
|
||||
!location->HasExpectedItem() &&
|
||||
!location->IsHinted())
|
||||
!location->IsHinted() &&
|
||||
itemHintItems.contains(location->GetCurrentItem()->GetName()))
|
||||
{
|
||||
possibleItemHintLocations.push_back(location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user