NEO-73: fix gdlint max-line-length for pre-push hook.

pull/107/head
VinPropane 2026-05-24 19:13:59 -04:00
parent d6a80ed775
commit 8de08a67a8
4 changed files with 17 additions and 7 deletions

View File

@ -2,7 +2,8 @@ extends Node
## NS-18 / NEO-25: POST InteractionRequest; prints server allow/deny to Output (prototype).
## [kbd]E[/kbd] → [code]prototype_terminal[/code]; [kbd]R[/kbd] → nearest in-range
## [code]resource_node[/code] ([code]main.gd[/code] + [code]prototype_interactable_picker.gd[/code]).
## [code]resource_node[/code] ([code]main.gd[/code] +
## [code]prototype_interactable_picker.gd[/code]).
## Key handling is delegated from
## [code]main.gd[/code] [method Node._unhandled_key_input] (see [method post_interact_terminal] /
## [method post_interact_id]) so the embedded Game dock still receives E/R reliably.

View File

@ -474,7 +474,8 @@ func _setup_gather_interact_feedback() -> void:
)
if _interaction_client.has_signal("interaction_request_failed"):
_interaction_client.connect(
"interaction_request_failed", Callable(self, "_on_interaction_request_failed_for_gather")
"interaction_request_failed",
Callable(self, "_on_interaction_request_failed_for_gather")
)
_render_gather_feedback_label()
@ -515,7 +516,10 @@ func _skill_row(skill_id: String) -> Dictionary:
return {}
if not _skill_progression_client.has_method("skill_row"):
return {}
return _skill_progression_client.call("skill_row", skill_id, _last_progression_snapshot) as Dictionary
var row: Variant = _skill_progression_client.call(
"skill_row", skill_id, _last_progression_snapshot
)
return row as Dictionary
func _render_gather_feedback_label(text: String = "Gather: —") -> void:

View File

@ -1,7 +1,8 @@
extends Object
## NEO-73: client-side nearest [code]resource_node[/code] picker for gather interact ([kbd]R[/kbd]).
## Horizontal X/Z distance + inclusive radius — same rule as [code]interaction_radius_indicators.gd[/code].
## Horizontal X/Z distance + inclusive radius — same rule as
## [code]interaction_radius_indicators.gd[/code].
const KIND_RESOURCE_NODE := "resource_node"
const FALLBACK_RESOURCE_NODE_ID := "prototype_resource_node_alpha"

View File

@ -1,6 +1,6 @@
extends GdUnitTestSuite
## NEO-25: `InteractionRequestClient` POST bodies for E vs R contract ids.
## NEO-25 / NEO-73: `InteractionRequestClient` POST bodies, result/failure signals.
const IxClient := preload("res://scripts/interaction_request_client.gd")
@ -118,7 +118,9 @@ func test_interaction_result_emits_allow_signal() -> void:
# Act
ix.call("post_interact_id", "prototype_resource_node_alpha")
# Assert
assert_signal(ix).is_emitted("interaction_result_received", "prototype_resource_node_alpha", true, "")
assert_signal(ix).is_emitted(
"interaction_result_received", "prototype_resource_node_alpha", true, ""
)
func test_interaction_result_emits_deny_signal() -> void:
@ -144,7 +146,9 @@ func test_interaction_request_failed_emits_on_http_error() -> void:
# Act
ix.call("post_interact_id", "prototype_resource_node_alpha")
# Assert
assert_signal(ix).is_emitted("interaction_request_failed", "prototype_resource_node_alpha", "HTTP 500")
assert_signal(ix).is_emitted(
"interaction_request_failed", "prototype_resource_node_alpha", "HTTP 500"
)
func test_last_wins_second_press_before_first_completes() -> void: