tools separated in inv

This commit is contained in:
Altaezio
2026-02-15 19:32:21 +01:00
parent f1acb6e3e9
commit fadf0cb769
13 changed files with 171 additions and 80 deletions

View File

@@ -6,7 +6,10 @@ const ACTION_ICON = preload("res://common/icons/swipe-down.svg")
const ENERGY_ICON = preload("res://common/icons/bolt.svg")
const ONE_TIME_ICON = preload("res://common/icons/circle-number-1.svg")
enum ItemType {TOOL_ITEM, CONSUMABLE_ITEM}
@export var name: String : get = get_item_name
@export var type: ItemType : get = get_item_type
@export var description: String : get = get_description
@export var icon: Texture2D : get = get_icon
@export var usage_zone_radius: int = 5 : get = get_usage_zone_radius
@@ -15,6 +18,9 @@ const ONE_TIME_ICON = preload("res://common/icons/circle-number-1.svg")
func get_item_name() -> String:
return name
func get_item_type() -> ItemType:
return type
func get_description() -> String:
return description