fix(卡② T0首提交): 采集器 rules 档 tree_rules 类型修复——Array 包裹 split 结果

String.split() 产 PackedStringArray,被 adventure_runner.gd:118/:200 的 is Array 守卫整组静默丢弃,
致 rules 档与 off 档逐位相同(分组空转、V12 rules 组恒假绿)。测试工具类型修复,无玩法改动。
This commit is contained in:
DKChan committed 2026-10-20 22:44:21 +08:00
1 parent 880ee91b20
commit a8db225799
1 file changed
+1 -1
+1 -1
View File
@@ -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("表加载失败")