feat: add physical animal care delivery

This commit is contained in:
Rijad Zuzo
2026-07-31 00:19:41 +02:00
parent 7d410d8193
commit ead75fca68
25 changed files with 1469 additions and 191 deletions
+10 -4
View File
@@ -133,11 +133,11 @@ func get_activity_target(action_id: StringName, origin: Vector3 = Vector3.ZERO)
return best_candidate
match action_id:
SimulationIds.ACTION_EAT:
return _get_storage_target(pantry_storage)
return get_storage_target(SimulationIds.STORAGE_VILLAGE_PANTRY)
SimulationIds.ACTION_DEPOSIT_FOOD, SimulationIds.ACTION_WITHDRAW_FOOD:
return _get_storage_target(pantry_storage)
return get_storage_target(SimulationIds.STORAGE_VILLAGE_PANTRY)
SimulationIds.ACTION_DEPOSIT_WOOD:
return _get_storage_target(woodpile_storage)
return get_storage_target(SimulationIds.STORAGE_VILLAGE_WOODPILE)
return {}
@@ -159,7 +159,13 @@ func get_activity_candidates(action_id: StringName) -> Array[Dictionary]:
return candidates
func _get_storage_target(storage_node: StorageNode) -> Dictionary:
func get_storage_target(storage_id: StringName) -> Dictionary:
var storage_node: StorageNode
match storage_id:
SimulationIds.STORAGE_VILLAGE_PANTRY:
storage_node = pantry_storage
SimulationIds.STORAGE_VILLAGE_WOODPILE:
storage_node = woodpile_storage
if storage_node == null:
return {}
return {