NEO-131: gdformat quest HUD scripts after Bugbot fixes.
parent
dc39250e96
commit
3c3170c731
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue