From a8db22579946f8b7c0b3eed8fc1b7ad1f1b86162 Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Tue, 20 Oct 2026 22:44:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8D=A1=E2=91=A1=20T0=E9=A6=96=E6=8F=90?= =?UTF-8?q?=E4=BA=A4):=20=E9=87=87=E9=9B=86=E5=99=A8=20rules=20=E6=A1=A3?= =?UTF-8?q?=20tree=5Frules=20=E7=B1=BB=E5=9E=8B=E4=BF=AE=E5=A4=8D=E2=80=94?= =?UTF-8?q?=E2=80=94Array=20=E5=8C=85=E8=A3=B9=20split=20=E7=BB=93?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit String.split() 产 PackedStringArray,被 adventure_runner.gd:118/:200 的 is Array 守卫整组静默丢弃, 致 rules 档与 off 档逐位相同(分组空转、V12 rules 组恒假绿)。测试工具类型修复,无玩法改动。 --- game/smoke/adventure_monte_carlo.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/smoke/adventure_monte_carlo.gd b/game/smoke/adventure_monte_carlo.gd index 28ba0148..e90ffb8f 100644 --- a/game/smoke/adventure_monte_carlo.gd +++ b/game/smoke/adventure_monte_carlo.gd @@ -62,7 +62,7 @@ func _initialize() -> void: elif feat_mode == "ab_b": feat_profile = {"mode": "off", "tree_rules": ["posture_bulwark"]} elif feat_mode == "rules": - feat_profile = {"mode": "off", "tree_rules": String(args[7] if args.size() >= 8 else "").split(",")} # V19——任意键集配对注入 + feat_profile = {"mode": "off", "tree_rules": Array(String(args[7] if args.size() >= 8 else "").split(",", false))} # V19——任意键集配对注入(Array 包裹防 PackedStringArray 被 adventure_runner is Array 守卫整组丢弃) var db = load("res://core/config_db.gd").new() if not db.load_tables("res://data/tables", false): print("表加载失败")