NEO-32: gdformat-style cast accept cooldown refresh

pull/59/head
VinPropane 2026-04-30 22:05:22 -04:00
parent c83d8c8ed2
commit ee953cbdfd
2 changed files with 4 additions and 5 deletions

View File

@ -379,11 +379,9 @@ func _on_cast_result_received(accepted: bool, reason_code: String) -> void:
return
if accepted:
_cast_feedback_label.text = "Cast: accepted"
if (
is_instance_valid(_cooldown_client)
and _cooldown_client.has_method("request_sync_from_server")
):
_cooldown_client.call("request_sync_from_server")
if is_instance_valid(_cooldown_client):
if _cooldown_client.has_method("request_sync_from_server"):
_cooldown_client.call("request_sync_from_server")
return
var rc := reason_code.strip_edges()
if rc.is_empty():

View File

@ -1,5 +1,6 @@
extends GdUnitTestSuite
## Covers [code]cooldown_state.gd[/code] snapshot math (NEO-32); paired with [code]main.gd[/code] wiring changes.
const CooldownStateScript := preload("res://scripts/cooldown_state.gd")