style: apply gdformat formatting across the entire project
Auto-format all GDScript files using gdformat from gdtoolkit. This is a baseline formatting pass to ensure consistent style: - Normalizes indentation and spacing - Wraps long lines to 100 characters - Removes trailing whitespace - Standardizes blank lines between functions 68 files reformatted, 8 files left unchanged (3rd-party addon files with parse errors excluded).
This commit is contained in:
@@ -6,17 +6,18 @@ extends Node
|
||||
@export var rest_marker: Marker3D
|
||||
@export var pantry_marker: Marker3D
|
||||
|
||||
|
||||
func get_resource_candidates(action_id: StringName) -> Array[Dictionary]:
|
||||
var candidates: Array[Dictionary] = []
|
||||
for node in ResourceNode.get_all():
|
||||
if node.action_id != action_id or node.interaction_point == null:
|
||||
continue
|
||||
candidates.append({
|
||||
"target_id": String(node.node_id),
|
||||
"position": node.interaction_point.global_position
|
||||
})
|
||||
candidates.append(
|
||||
{"target_id": String(node.node_id), "position": node.interaction_point.global_position}
|
||||
)
|
||||
return candidates
|
||||
|
||||
|
||||
func get_activity_target(action_id: StringName) -> Dictionary:
|
||||
var marker: Marker3D
|
||||
match action_id:
|
||||
@@ -33,10 +34,13 @@ func get_activity_target(action_id: StringName) -> Dictionary:
|
||||
if marker == null:
|
||||
return {}
|
||||
var target_id := ""
|
||||
if action_id in [
|
||||
SimulationIds.ACTION_EAT,
|
||||
SimulationIds.ACTION_DEPOSIT_FOOD,
|
||||
SimulationIds.ACTION_WITHDRAW_FOOD
|
||||
]:
|
||||
if (
|
||||
action_id
|
||||
in [
|
||||
SimulationIds.ACTION_EAT,
|
||||
SimulationIds.ACTION_DEPOSIT_FOOD,
|
||||
SimulationIds.ACTION_WITHDRAW_FOOD
|
||||
]
|
||||
):
|
||||
target_id = String(SimulationIds.STORAGE_VILLAGE_PANTRY)
|
||||
return {"target_id": target_id, "position": marker.global_position}
|
||||
|
||||
Reference in New Issue
Block a user