Chest contents in trenchbroom

This commit is contained in:
Marco 2025-06-27 09:08:00 +02:00
commit 4cc7a0c004
7 changed files with 509 additions and 452 deletions

View file

@ -115,6 +115,18 @@ public partial class InventoryManager : Node
return dbItem != null;
}
public bool AddItem(string itemKey)
{
var i = FindItemInDb(itemKey);
if (i is null)
{
GD.Print($"{itemKey} not found in DB");
return false;
}
return AddItem(i);
}
public bool AddItem(LootItem item)
{
//var item = new LootItem() { Item = type, Amount = amount };