mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 04:55:54 +00:00
Chest contents in trenchbroom
This commit is contained in:
parent
54eefc2961
commit
4cc7a0c004
7 changed files with 509 additions and 452 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue