diff --git a/client/scripts/npc_combat_hud_helpers.gd b/client/scripts/npc_combat_hud_helpers.gd index 1d66ebb..c7d22da 100644 --- a/client/scripts/npc_combat_hud_helpers.gd +++ b/client/scripts/npc_combat_hud_helpers.gd @@ -38,7 +38,7 @@ static func resolve_hud_npc_rows( var lock_id := locked_target_id_from_state(last_target_state) var locked_row: Dictionary = {} if is_known_npc_id(lock_id): - locked_row = NpcRuntimeClient.npc_row(lock_id, npc_runtime_snapshot) + locked_row = NpcRuntimeClient.npc_row_in_snapshot(lock_id, npc_runtime_snapshot) var incoming_row: Dictionary = {} var aggro_row: Dictionary = incoming_aggro_row(dev_player_id, npc_runtime_snapshot) if not aggro_row.is_empty(): diff --git a/client/scripts/npc_runtime_client.gd b/client/scripts/npc_runtime_client.gd index b4dbd89..cb361d2 100644 --- a/client/scripts/npc_runtime_client.gd +++ b/client/scripts/npc_runtime_client.gd @@ -60,10 +60,6 @@ func npc_row(instance_id: String, snapshot: Dictionary = {}) -> Dictionary: return npc_row_in_snapshot(instance_id, source) -static func npc_row(instance_id: String, snapshot: Dictionary = {}) -> Dictionary: - return npc_row_in_snapshot(instance_id, snapshot) - - static func npc_row_in_snapshot(instance_id: String, snapshot: Dictionary) -> Dictionary: var source: Dictionary = snapshot if source.is_empty(): diff --git a/client/test/npc_runtime_client_test.gd b/client/test/npc_runtime_client_test.gd index 37149f6..b8b9c81 100644 --- a/client/test/npc_runtime_client_test.gd +++ b/client/test/npc_runtime_client_test.gd @@ -83,7 +83,7 @@ func test_npc_row_returns_elite_telegraph_fields() -> void: # Arrange var parsed: Variant = NpcRuntimeClient.parse_runtime_json(_runtime_snapshot_json()) # Act - var row: Dictionary = NpcRuntimeClient.npc_row( + var row: Dictionary = NpcRuntimeClient.npc_row_in_snapshot( "prototype_npc_elite", parsed as Dictionary ) # Assert