seeding-planets/entities/interactables/scripts/actions/water_plant.gd
2025-08-03 19:38:46 +02:00

8 lines
222 B
GDScript

extends InteractableAction
class_name WaterPlantAction
func action(_p: Player, i : Interactable):
if i is Plant:
i.watered = true
else :
printerr("No plant selected or interactable is not a plant")