* résolution du bug de disparition des items #94 * améliorations définitives dans le camion via compost #88 * ajout de plus d'aléatoire dans le zone de départ * suppression des récompenses de quota (pour l'instant) * équilibrage du gain en graine * ajout de la clarté dans les actions
48 lines
1.0 KiB
GDScript
48 lines
1.0 KiB
GDScript
extends Resource
|
|
class_name Item
|
|
|
|
var name: String : get = get_item_name
|
|
var description: String : get = get_description
|
|
var icon: Texture2D : get = get_icon
|
|
var usage_zone_radius: int = 5 : get = get_usage_zone_radius
|
|
var energy_usage : int = 1 : get = get_energy_used
|
|
|
|
func get_item_name() -> String:
|
|
return name
|
|
|
|
func get_description() -> String:
|
|
return description
|
|
|
|
func get_icon() -> Texture2D:
|
|
return icon
|
|
|
|
func get_energy_used() -> int:
|
|
return energy_usage
|
|
|
|
func get_usage_zone_radius() -> int:
|
|
return usage_zone_radius
|
|
|
|
func get_usage_object_affected(_i : InspectableEntity) -> bool:
|
|
return false
|
|
|
|
func is_one_time_use():
|
|
return false
|
|
|
|
func can_use(_player : Player, zone: Player.ActionZone) -> bool:
|
|
return false
|
|
|
|
func use_text() -> String:
|
|
return ""
|
|
|
|
func use(_player : Player, zone: Player.ActionZone):
|
|
return false
|
|
|
|
func inspector_info() -> Inspector.Info:
|
|
return Inspector.Info.new(
|
|
get_item_name(),
|
|
get_description(),
|
|
get_icon()
|
|
)
|
|
|
|
func get_particles() -> Array[Particles.Parameters]:
|
|
return [] |