NEO-32: gdformat-style cast accept cooldown refresh
parent
c83d8c8ed2
commit
ee953cbdfd
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue