mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 23:55:54 +00:00
Update Weapon in status
This commit is contained in:
parent
8f9e4f0bb9
commit
83d3cc7835
10 changed files with 45 additions and 15 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Godot;
|
||||
using System.Linq;
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Cirno.Scripts.Resources;
|
||||
|
|
@ -8,4 +9,9 @@ public partial class ItemsDatabase : Resource
|
|||
{
|
||||
[Export]
|
||||
public Array<LootItem> LootItems { get; set; } = new();
|
||||
|
||||
public LootItem GetLootItem(string itemName)
|
||||
{
|
||||
return LootItems.FirstOrDefault(x => x.ItemKey == itemName);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue