feat: add physical animal care delivery
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user