diff --git a/client/scripts/quest_hud_controller.gd b/client/scripts/quest_hud_controller.gd index b6a3e81..6fba53e 100644 --- a/client/scripts/quest_hud_controller.gd +++ b/client/scripts/quest_hud_controller.gd @@ -60,9 +60,7 @@ func setup( "definitions_sync_failed", Callable(self, "_on_definitions_sync_failed") ) if is_instance_valid(_item_defs_client) and _item_defs_client.has_signal("definitions_ready"): - _item_defs_client.connect( - "definitions_ready", Callable(self, "_on_item_definitions_ready") - ) + _item_defs_client.connect("definitions_ready", Callable(self, "_on_item_definitions_ready")) _render_progress_label() _render_accept_feedback_label() _render_reward_label() @@ -177,9 +175,7 @@ func _detect_and_apply_completion_transitions(snapshot: Dictionary) -> void: if new_status == "active": _mark_quest_active_in_session(qid) var prev_status := str(_previous_status_by_quest.get(qid, "not_started")) - var can_detect := ( - not boot_seed or bool(_quest_was_active_in_session.get(qid, false)) - ) + var can_detect := not boot_seed or bool(_quest_was_active_in_session.get(qid, false)) if can_detect and prev_status != "completed" and new_status == "completed": var summary := QuestProgressClient.completion_reward_summary(qid, snapshot) if not summary.is_empty(): diff --git a/client/test/quest_reward_hud_test.gd b/client/test/quest_reward_hud_test.gd index 0dae2df..dd8bb14 100644 --- a/client/test/quest_reward_hud_test.gd +++ b/client/test/quest_reward_hud_test.gd @@ -23,10 +23,7 @@ class MockHttpTransport: _request_data: String = "" ) -> Error: request_completed.emit( - HTTPRequest.RESULT_SUCCESS, - 200, - PackedStringArray(), - body_json.to_utf8_buffer() + HTTPRequest.RESULT_SUCCESS, 200, PackedStringArray(), body_json.to_utf8_buffer() ) return OK