mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 02:16:03 -04:00
dont throw on failed to obtain item name, fix getTempleKeysFound not checking flag correctly
This commit is contained in:
@@ -510,7 +510,7 @@ namespace dusk {
|
||||
LocationTrackerInfo info {
|
||||
.locationName = location->GetName(),
|
||||
.logicStr = location->GetComputedRequirement().to_string(),
|
||||
.locationItem = itemId >= 0 ? world->GetItem(itemId)->GetName() : "Unknown",
|
||||
.locationItem = itemId >= 0 ? world->GetItem(itemId, true)->GetName() : "Unknown",
|
||||
.accessible = m_currentSearch._visitedLocations.contains(location)
|
||||
};
|
||||
|
||||
|
||||
@@ -168,10 +168,11 @@ int getTempleKeysFound(int stage) {
|
||||
};
|
||||
|
||||
int count = dComIfGs_getKeyNum(stage);
|
||||
int saveId = getStageSaveId(stage);
|
||||
|
||||
// Add number of unlocked key doors for this dungeon to current key count
|
||||
for (auto flag : keyDoorFlags[stage]) {
|
||||
if (dComIfGs_isSwitch(stage, flag)) {
|
||||
if (tracker_isStageSwitch(saveId, flag)) {
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user