Item get event

This commit is contained in:
2025-05-19 07:10:17 -05:00
parent dd783174e8
commit f625415939
9 changed files with 44 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
class_name EventItem extends Event
const Inventory = preload("res://scripts/Item/Inventory.gd")
@export var itemType:Item.ItemType = Item.ItemType.POTION
@export var quantity:int = 1
var inventory:Inventory = null
func getInventory() -> Inventory:
if inventory == null:
inventory = ITEM.PLAYER_INVENTORY
return inventory