feat: add paired goat care
This commit is contained in:
@@ -7,6 +7,7 @@ static var _all: Array[AnimalRoutineSite] = []
|
||||
@export var site_id: StringName
|
||||
@export var display_name := "Animal site"
|
||||
@export var species_id: StringName = SimulationIds.SPECIES_GOAT
|
||||
@export var resident_animal_id: StringName
|
||||
@export var debug_label_enabled := false
|
||||
|
||||
|
||||
@@ -48,6 +49,13 @@ func supports_species(candidate_species_id: StringName) -> bool:
|
||||
return candidate_species_id == species_id
|
||||
|
||||
|
||||
func supports_animal(candidate_animal_id: StringName, candidate_species_id: StringName) -> bool:
|
||||
return (
|
||||
supports_species(candidate_species_id)
|
||||
and (resident_animal_id.is_empty() or resident_animal_id == candidate_animal_id)
|
||||
)
|
||||
|
||||
|
||||
func get_routine_position() -> Vector3:
|
||||
return global_position
|
||||
|
||||
|
||||
Reference in New Issue
Block a user