1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-25 01:24:23 +00:00
hella-farm/behaviours/sacrificable.gd
Stefano Pigozzi 872ff3c6b6
Convert Sacrificable's enum into a StringName
Sigh, Godot displays an array of enums as ints...
2024-04-28 19:43:10 +02:00

17 lines
378 B
GDScript

@icon("res://behaviours/sacrificable.svg")
extends Node
class_name Sacrificable
## Emits [signal eaten] when eaten by an [Eater] whose acceptable diets contain this node's [field diet].
##
## To add multiple possible [Edible] diets to an entity, add multiple [Edible] nodes to it.
signal sacrificed
@export var kind: StringName = &""
func sarcifice():
sacrificed.emit()