tools separated in inv
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user