From dea383904b96b4999884427e0a8114014f405d66 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Fri, 30 Oct 2026 06:39:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=B8=E7=BA=A2=E4=BF=AE=E5=A4=8D(=E6=89=B9?= =?UTF-8?q?=E6=9C=AB=E5=85=A8=E9=87=8F=E5=9F=9F=E9=97=B8=E4=B8=89=E5=A4=84?= =?UTF-8?q?=E6=96=B0=E7=BA=A2=E5=BF=85=E4=BF=AE):=20=E2=91=A0S9=20R1?= =?UTF-8?q?=E2=80=94=E2=80=94tune=5Fsim=20=5Fsim=5Fstats=E8=A3=B8Dictionar?= =?UTF-8?q?y=E6=B3=A8=E8=A7=A3=E6=94=B9Dictionary[Variant,Variant](Variant?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8C=96=E7=8E=B0=E8=A1=8C=E5=8F=A3=E5=BE=84?= =?UTF-8?q?);=E2=91=A1ui=5Finput=5Fprobe=20:482/:488=20case=E2=91=AE?= =?UTF-8?q?=E8=A3=85=E9=85=8D=E7=9B=B4=E6=9E=84=E6=B3=A8=E5=85=A5=20settle?= =?UTF-8?q?ment.attunement=E2=86=92=5Ffacts.attunement(=E5=8D=A1=E2=91=A1?= =?UTF-8?q?=E6=88=90=E5=91=98=E8=BF=81=E7=A7=BB=E7=9A=84=E6=8E=A2=E9=92=88?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E6=BC=8F=E7=BD=91=E2=80=94=E2=80=94T0?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E8=B0=B1=E7=B3=BB=E5=8F=AA=E6=89=ABmain./roo?= =?UTF-8?q?t.=E5=89=8D=E7=BC=80,=E7=9B=B4=E6=9E=84=E6=B3=A8=E5=85=A5?= =?UTF-8?q?=E5=BD=A2=E6=80=81=E6=BC=8F;SCRIPT=20ERROR=E4=B8=AD=E6=96=AD=5F?= =?UTF-8?q?ready=E8=87=B4=E6=8E=A2=E9=92=88=E6=8C=82=E6=AD=BB=E8=B6=85?= =?UTF-8?q?=E6=97=B6);=E2=91=A2run=5Ftime=5Ffatal=5Ftest=20:75=20BoardInst?= =?UTF-8?q?aller=E6=9D=9F=E9=94=AE=E5=80=BC=20oc.encounter=E2=86=92oc.=5Ff?= =?UTF-8?q?acts.encounter(=E5=90=8C=E5=9E=8B=E6=BC=8F=E7=BD=91=E2=80=94?= =?UTF-8?q?=E2=80=94=E8=B4=9F=E9=9D=A2=E5=A5=97=E4=BB=B6=E5=90=8D=E4=B8=8E?= =?UTF-8?q?=E8=A7=A6=E9=9D=A2=E6=97=A0=E5=AD=97=E9=9D=A2=E5=85=B3=E8=81=94?= =?UTF-8?q?,=E5=85=B3=E8=81=94=E6=A1=A3=E9=80=89=E6=B5=8B=E7=9B=B2?= =?UTF-8?q?=E5=8C=BA,SCRIPT=20ERROR=E4=B8=AD=E6=96=AD=E8=87=B4=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=A0=812=E2=89=A0=E6=9C=9F=E6=9C=9B1)=E2=80=94?= =?UTF-8?q?=E2=80=94=E4=B8=89=E4=BB=B6=E5=AD=A4=E8=B7=91=E5=A4=8D=E7=BB=BF?= =?UTF-8?q?(S9=E5=BD=92=E9=9B=B6/=E6=8E=A2=E9=92=88=E5=8D=81=E5=85=AB?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E7=BB=BF/=E8=B4=9F=E9=9D=A2=E5=A5=97?= =?UTF-8?q?=E4=BB=B6exit=3D1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/presentation/tune_sim_controller.gd | 2 +- game/probe/ui_input_probe.gd | 4 ++-- game/tests/unit/core/run_time_fatal_test.gd | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game/presentation/tune_sim_controller.gd b/game/presentation/tune_sim_controller.gd index 62a5c17e..8a6695b3 100644 --- a/game/presentation/tune_sim_controller.gd +++ b/game/presentation/tune_sim_controller.gd @@ -20,7 +20,7 @@ var _driver = null # 关卡自动策略驱动(调用方注入;null = var _running := false # 运行态(run 全程 true——组合根互查守卫用,与面板置灰解耦) var _sim_n := 0 # 本批局数(run 期活成员——批末失效、下次 run 重写) var _sim_i := 0 # 已执行局数(步进计数) -var _sim_stats: Dictionary = {} # stats 六键束(run 期承载) +var _sim_stats: Dictionary[Variant, Variant] = {} # stats 六键束(run 期承载) var _sim_autoplay = null # 自动策略驱动实例(run 期承载) var _sim_logger = null # 共享 JSONL 日志会话(run 期承载) var _finished := false # 批完成旗标(_finish_batch 置位——收尾段同步承载) diff --git a/game/probe/ui_input_probe.gd b/game/probe/ui_input_probe.gd index 71b55f77..fddfb61a 100644 --- a/game/probe/ui_input_probe.gd +++ b/game/probe/ui_input_probe.gd @@ -479,13 +479,13 @@ func _ready() -> void: var p_lantern: Dictionary = main.build_adventure_params(main.save_manager, main.meta) if not (p_lantern.get("attunement", []) as Array).has("wide_scout_band"): _problems.append("case⑮ 装配未进开局参数面(attunement=%s 应含 wide_scout_band)" % str(p_lantern.get("attunement", []))) - main.run_scope.settlement.attunement = ["wide_scout_band"] + main.run_scope.settlement._facts.attunement = ["wide_scout_band"] main._sync_treasure_glow() if int(bv.fog_params_probe()["lantern"]) != 4: _problems.append("case⑮ 装配后视野未扩(lantern 应=4——呈现桥未生效)") if int(bv.cells_probe()[ring_cell].fog_state) != 0: _problems.append("case⑮ 装配后 dist==R+1 格仍被遮(应转可见)") - main.run_scope.settlement.attunement = [] + main.run_scope.settlement._facts.attunement = [] main._sync_treasure_glow() if int(bv.fog_params_probe()["lantern"]) != 0: _problems.append("case⑮ 卸装后视野未复原(lantern 应=0——契约复原语义显式重算)") diff --git a/game/tests/unit/core/run_time_fatal_test.gd b/game/tests/unit/core/run_time_fatal_test.gd index b25e1910..cd80a919 100644 --- a/game/tests/unit/core/run_time_fatal_test.gd +++ b/game/tests/unit/core/run_time_fatal_test.gd @@ -72,7 +72,7 @@ func _seal_propagation(db) -> bool: rng_a.set_master_seed(5) var oc_bg = OrchestratorScript.new(db, rng_a) var bi_bg = BoardInstallerScript.new({"db": db, "rng": rng_a, "minesweeper": oc_bg.minesweeper, - "reward_economy": oc_bg._reward_economy, "encounter": oc_bg.encounter, "fatal_cb": oc_bg._fatal}) + "reward_economy": oc_bg._reward_economy, "encounter": oc_bg._facts.encounter, "fatal_cb": oc_bg._fatal}) bi_bg.generator._fatal("测试违约①棋盘生成") if oc_bg.battle_result != "fatal_error": push_error("[run_time_fatal_test/wr5] 棋盘生成违约未传导封印(battle_result=%s)" % str(oc_bg.battle_result))