ajout des actions demandant un clic long et dev des region modifier

This commit is contained in:
2026-02-27 13:45:31 +01:00
parent e942250918
commit 8879c9d42b
18 changed files with 334 additions and 78 deletions

View File

@@ -6,6 +6,8 @@ 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")
const DEFAULT_PRESS_TIME = 0.7
enum ItemType {TOOL_ITEM, CONSUMABLE_ITEM}
@export var name: String : get = get_item_name
@@ -36,6 +38,12 @@ func get_usage_zone_radius() -> int:
func is_usage_need_proximity() -> bool:
return true
func is_action_need_press_time() -> bool:
return get_energy_used() > 0
func get_action_press_time() -> float:
return DEFAULT_PRESS_TIME
func get_usage_object_affected(_i : InspectableEntity) -> bool:
return false