From 986613fd26c982917786ab1d5eec1fbd55880833 Mon Sep 17 00:00:00 2001 From: VinPropane Date: Wed, 8 Apr 2026 23:56:21 -0400 Subject: [PATCH] NEON-27: apply gdformat to isometric_follow_camera.gd Style-only: flatten short boolean expression in occlusion_policy_is_valid; reformat string interpolation in push_warning calls. --- client/scripts/isometric_follow_camera.gd | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/client/scripts/isometric_follow_camera.gd b/client/scripts/isometric_follow_camera.gd index 74fd654..e548fbd 100644 --- a/client/scripts/isometric_follow_camera.gd +++ b/client/scripts/isometric_follow_camera.gd @@ -220,11 +220,7 @@ func _occlusion_policy_valid() -> bool: ## Static guard — safe to call from tests without a live scene. static func occlusion_policy_is_valid(policy: Resource) -> bool: - return ( - policy != null - and policy.get_script() == OcclusionPolicyScript - and policy.is_valid() - ) + return policy != null and policy.get_script() == OcclusionPolicyScript and policy.is_valid() ## Cast iterative rays from the smoothed eye to the player focus. @@ -258,9 +254,10 @@ func _update_occlusion(focus: Vector3) -> void: and newly_blocking.size() >= policy.occluder_count_log_threshold ): push_warning( - "OcclusionPolicy: %d occluder(s) active (threshold %d)" % [ - newly_blocking.size(), policy.occluder_count_log_threshold - ] + ( + "OcclusionPolicy: %d occluder(s) active (threshold %d)" + % [newly_blocking.size(), policy.occluder_count_log_threshold] + ) ) var to_restore: Array = _occluder_overrides.keys() @@ -295,9 +292,10 @@ func _apply_occluder_fade(body: Node3D) -> void: faded = StandardMaterial3D.new() else: push_warning( - "OcclusionPolicy: %s surface %d is %s — skipping fade." % [ - mi.get_path(), s, effective.get_class() - ] + ( + "OcclusionPolicy: %s surface %d is %s — skipping fade." + % [mi.get_path(), s, effective.get_class()] + ) ) continue faded.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA