NEO-99: Fix gdlint duplicated-load and gdformat line wrap

Extract shared TARGET_ALPHA preload for melee and elite NPC props; reformat
interactable_world_builder prop lookup to satisfy max-line-length.
pull/134/head
VinPropane 2026-05-29 20:07:25 -04:00
parent f642fc2a7e
commit d6b87f34b3
2 changed files with 9 additions and 4 deletions

View File

@ -97,7 +97,9 @@ static func _make_marker_mesh() -> MeshInstance3D:
static func _add_prop_visual( static func _add_prop_visual(
body: StaticBody3D, interactable_id: String, kind: String, anchor_y: float body: StaticBody3D, interactable_id: String, kind: String, anchor_y: float
) -> void: ) -> void:
var packed: Variant = PrototypeDistrictVisualCatalog.INTERACTABLE_PROPS.get(interactable_id, null) var packed: Variant = PrototypeDistrictVisualCatalog.INTERACTABLE_PROPS.get(
interactable_id, null
)
if packed is PackedScene: if packed is PackedScene:
var visual: Node3D = PrototypeDistrictVisualCatalog.instantiate_prop( var visual: Node3D = PrototypeDistrictVisualCatalog.instantiate_prop(
packed as PackedScene, anchor_y packed as PackedScene, anchor_y

View File

@ -14,10 +14,13 @@ const INTERACTABLE_PROPS: Dictionary = {
"prototype_urban_bulk_delta": preload("res://assets/district/props/urban_delta.glb"), "prototype_urban_bulk_delta": preload("res://assets/district/props/urban_delta.glb"),
} }
const TARGET_ALPHA: PackedScene = preload("res://assets/district/props/target_alpha.glb")
const TARGET_BETA: PackedScene = preload("res://assets/district/props/target_beta.glb")
const TARGET_PROPS: Dictionary = { const TARGET_PROPS: Dictionary = {
"prototype_npc_melee": preload("res://assets/district/props/target_alpha.glb"), "prototype_npc_melee": TARGET_ALPHA,
"prototype_npc_ranged": preload("res://assets/district/props/target_beta.glb"), "prototype_npc_ranged": TARGET_BETA,
"prototype_npc_elite": preload("res://assets/district/props/target_alpha.glb"), "prototype_npc_elite": TARGET_ALPHA,
} }