merge: handler归因print
This commit is contained in:
commit
22c5a1ecba
1 file changed
+8
@@ -928,6 +928,9 @@ func _on_node_continue() -> void:
|
||||
|
||||
func _on_choices_presented(candidates: Array) -> void:
|
||||
# 零自动推进的停点呈现:整幅节点图 + 图上点击选路(候选按钮退役 2026-09-28——战斗胜利/兑付确认统一到达此处)
|
||||
if OS.get_environment("T17_LOCK_DEBUG") != "":
|
||||
print("[choices_dbg] handler entered cands=%d runner_null=%s node=%s" % [
|
||||
candidates.size(), str(runner == null), str(runner.node_index) if runner != null else "-"])
|
||||
if runner == null:
|
||||
return
|
||||
log_view.append_bb(Narrator.route_line(candidates, runner))
|
||||
@@ -937,6 +940,8 @@ func _on_choices_presented(candidates: Array) -> void:
|
||||
# 的当前节点非 battle 型——三态天然分流)。Boss 胜/失败走 level_finished 另路不经此处。
|
||||
if _adventure_mode and runner.current_battle() == null \
|
||||
and String(runner.current_node().get("type", "")) == "battle" and not candidates.is_empty():
|
||||
if OS.get_environment("T17_LOCK_DEBUG") != "":
|
||||
print("[choices_dbg] -> battle stop overlay (node %s)" % str(runner.node_index))
|
||||
_settlement_stop_pending = true
|
||||
_pending_candidates = candidates.duplicate()
|
||||
_end_overlay.open_victory(Narrator.battle_end_text("victory", false), "下一节点",
|
||||
@@ -945,6 +950,9 @@ func _on_choices_presented(candidates: Array) -> void:
|
||||
_open_modal(_end_overlay)
|
||||
_refresh_presentations()
|
||||
return
|
||||
if OS.get_environment("T17_LOCK_DEBUG") != "":
|
||||
print("[choices_dbg] -> level_screen (node %s type %s cands %d)" % [
|
||||
str(runner.node_index), String(runner.current_node().get("type", "")), candidates.size()])
|
||||
_enter_level_screen()
|
||||
level_screen.open_choices(candidates, runner)
|
||||
_refresh_presentations()
|
||||
|
||||
Reference in new issue
Block a user