update check tracker when actor tells what they reward (#4568)

* update check tracker when actor tells you what they reward

do not render price when 0

* feedback
This commit is contained in:
Philip Dubé 2024-12-02 16:04:21 +00:00 committed by GitHub
commit caf0dc40c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 152 additions and 5 deletions

View file

@ -1503,7 +1503,10 @@ void DrawLocation(RandomizerCheck rc) {
txt = itemLoc->GetPlacedItem().GetName().GetForLanguage(gSaveContext.language);
}
if (IsVisibleInCheckTracker(rc) && status == RCSHOW_IDENTIFIED && !mystery && !itemLoc->IsAddedToPool()) {
txt += fmt::format(" - {}", OTRGlobals::Instance->gRandoContext->GetItemLocation(rc)->GetPrice());
auto price = OTRGlobals::Instance->gRandoContext->GetItemLocation(rc)->GetPrice();
if (price) {
txt += fmt::format(" - {}", price);
}
}
} else {
if (IsHeartPiece((GetItemID)Rando::StaticData::RetrieveItem(loc->GetVanillaItem()).GetItemID())) {