ajout de la possibilité d'avoir des items utilisable sans se déplacer

This commit is contained in:
2026-02-26 19:52:46 +01:00
parent 6a0e7c6ca7
commit a4662f2797
4 changed files with 31 additions and 14 deletions

View File

@@ -33,6 +33,9 @@ func get_energy_used() -> int:
func get_usage_zone_radius() -> int:
return usage_zone_radius
func is_usage_need_proximity() -> bool:
return true
func get_usage_object_affected(_i : InspectableEntity) -> bool:
return false

View File

@@ -19,6 +19,9 @@ func get_energy_used() -> int:
func get_usage_zone_radius() -> int:
return 0
func is_usage_need_proximity() -> bool:
return false
func can_use(_player : Player, _zone: Player.ActionZone) -> bool:
return true

View File

@@ -11,7 +11,7 @@ func get_description() -> String:
return tr("SHIP_TELEPORT_DESC_TEXT")
func get_icon() -> Texture2D:
return preload("res://common/icons/chevrons-up.svg")
return preload("res://common/icons/rocket.svg")
func get_energy_used() -> int:
return 0
@@ -19,6 +19,9 @@ func get_energy_used() -> int:
func get_usage_zone_radius() -> int:
return 0
func is_usage_need_proximity() -> bool:
return false
func can_use(_player : Player, _zone: Player.ActionZone) -> bool:
return true