seeding-planets/entities/player/inventory/scripts/items/trowel.gd
Zacharie Guet a8bb09407e ajout de la traduction #70
* Fix de l'inspection de l'inventaire
* Suppression des assets d'objectifs
2025-11-07 17:36:18 +01:00

21 lines
446 B
GDScript

extends Fork
class_name Trowel
const TROWEL_ZONE_RADIUS = 50
func get_item_name() -> String:
return tr("TROWEL")
func get_description() -> String:
return tr("TROWEL_DESC_TEXT")
func get_icon() -> Texture2D:
return preload("res://common/icons/trowel.svg")
func get_usage_zone_radius() -> int:
return TROWEL_ZONE_RADIUS
func harvest(p : Plant, player: Player):
ProduceSeedsEffect.new(1).effect(p)
player.play_sfx("harvest")
p.harvest()