mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-22 08:04:23 +00:00
17 lines
397 B
GDScript3
17 lines
397 B
GDScript3
|
@icon("res://behaviours/edible.svg")
|
||
|
extends Node
|
||
|
class_name MonsterType
|
||
|
|
||
|
## 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 type: Enums.MonsterType = Enums.MonsterType.Sheep
|
||
|
|
||
|
|
||
|
func sarcifice():
|
||
|
sacrificed.emit()
|