Files
Dawn-Godot/scripts/Item/Item.gd

27 lines
415 B
GDScript

class_name Item extends Node
enum Type {
# Items
POTION = 1,
# Ingredients
ONION = 2,
SWEET_POTATO = 3,
# Recipe outputs
BAKED_SWEET_POTATO = 4,
};
enum Category {
MEDICINE,
KEY_ITEM,
INGREDIENT,
FOOD
};
@export var title:String = ""
@export var description_text:String = ""
@export var type:Type = Type.POTION
@export var category:Category = Category.INGREDIENT
@export var stackable:bool = true