mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-24 18:32:19 -05:00
Adds item names to filtered parameters. (#4485)
This commit is contained in:
parent
804584e79d
commit
169e39ebad
@ -1064,12 +1064,22 @@ bool UpdateFilters() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ShouldShowCheck(RandomizerCheck check) {
|
bool ShouldShowCheck(RandomizerCheck check) {
|
||||||
|
auto itemLoc = Rando::Context::GetInstance()->GetItemLocation(check);
|
||||||
|
std::string search = (Rando::StaticData::GetLocation(check)->GetShortName() + " " +
|
||||||
|
Rando::StaticData::GetLocation(check)->GetName() + " " +
|
||||||
|
RandomizerCheckObjects::GetRCAreaName(Rando::StaticData::GetLocation(check)->GetArea()));
|
||||||
|
if (itemLoc->HasObtained() || itemLoc->GetCheckStatus() == RCSHOW_SCUMMED ||
|
||||||
|
(!mystery && (itemLoc->GetCheckStatus() == RCSHOW_IDENTIFIED || itemLoc->GetCheckStatus() == RCSHOW_SEEN) && itemLoc->GetPlacedRandomizerGet() != RG_ICE_TRAP)) {
|
||||||
|
search += " " + itemLoc->GetPlacedItemName().GetForLanguage(gSaveContext.language);
|
||||||
|
} else if (itemLoc->GetCheckStatus() == RCSHOW_IDENTIFIED && !mystery) {
|
||||||
|
search += OTRGlobals::Instance->gRandoContext->overrides[check].GetTrickName().GetForLanguage(gSaveContext.language);
|
||||||
|
} else if (itemLoc->GetCheckStatus() == RCSHOW_SEEN && !mystery) {
|
||||||
|
search += Rando::StaticData::RetrieveItem(OTRGlobals::Instance->gRandoContext->overrides[check].LooksLike()).GetName().GetForLanguage(gSaveContext.language);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
IsVisibleInCheckTracker(check) &&
|
IsVisibleInCheckTracker(check) &&
|
||||||
(checkSearch.Filters.Size == 0 ||
|
(checkSearch.Filters.Size == 0 ||
|
||||||
checkSearch.PassFilter((Rando::StaticData::GetLocation(check)->GetShortName() + " " +
|
checkSearch.PassFilter(search.c_str()))
|
||||||
Rando::StaticData::GetLocation(check)->GetName() + " " +
|
|
||||||
RandomizerCheckObjects::GetRCAreaName(Rando::StaticData::GetLocation(check)->GetArea())).c_str()))
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user