Fix Persiko and Grand Library

This commit is contained in:
2026-06-01 22:54:03 -07:00
parent 463d91d640
commit 5d698f6565
4 changed files with 17 additions and 8 deletions
+8
View File
@@ -808,6 +808,14 @@ public partial class Game : Node3D, IGame
var identifiedItem = _player.IdentifyItem(itemToIdentify);
InventoryEventNotification.Invoke($"{itemToIdentify} identified to be {identifiedItem.ItemName}.");
break;
case UsableItemTag.IdentifyAllItemsCostHP:
var unidentifiedItemsAll = _player.Inventory.Items.Where(x => x.ItemTag == ItemTag.MysteryItem).ToList();
if (!unidentifiedItemsAll.Any())
return;
foreach (var item in unidentifiedItemsAll)
_player.IdentifyItem(item);
InventoryEventNotification.Invoke($"All items identified.");
break;
}
_player.EquipmentComponent.UpdateEquipment(_player.EquipmentComponent.EquippedWeapon.Value);
_player.EquipmentComponent.UpdateEquipment(_player.EquipmentComponent.EquippedArmor.Value);