feat: replace activity markers with typed sites
This commit is contained in:
@@ -432,7 +432,8 @@ func get_pantry() -> StorageStateRecord:
|
||||
|
||||
|
||||
func register_loaded_storage_nodes() -> void:
|
||||
for node in StorageNode.get_all():
|
||||
for candidate in StorageNode.get_all():
|
||||
var node := candidate as StorageNode
|
||||
register_storage_node(node)
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ func resolve(
|
||||
npc, origin, definition, simulation_manager, active_world_adapter
|
||||
)
|
||||
SimulationIds.TARGET_ACTIVITY:
|
||||
return active_world_adapter.get_activity_target(npc.current_task)
|
||||
return active_world_adapter.get_activity_target(npc.current_task, origin)
|
||||
SimulationIds.TARGET_FREE:
|
||||
return {
|
||||
"target_id": "", "position": origin + simulation_manager.get_wander_offset(npc.id)
|
||||
|
||||
Reference in New Issue
Block a user