拆件批v1.3-修复A(挂死与残留两缺陷): trigger_cond_test V6 三处旧成员读随 B4 指标面换代——_mines_hit_total/_mines_hit_last/_mines_hit_round 三计数已并入 _mines_hits 一账,断言同强度改键读(total/last/round);旧读在 _init 中段即 SCRIPT ERROR 中止,quit 永不达→headless 进程高 CPU 不退出(两轮观测 ≥18/≥25 分钟复现,修复后 1.7 秒全绿);adventure_runner resume 已兑付分支删 reemit_resolved() 残留调用——restore_resolved 已收编置态+重发一步(时序逐位同),残留调 Nonexistent function 运行期红。验收:trigger_cond_test 单跑 1.7s 全绿 exit0;bp_resume_test 单跑 2.2s 全绿 exit0〔领域拆分批 V1〕

This commit is contained in:
DKChan committed 2026-10-27 16:48:26 +08:00
1 parent fde14f1c1c
commit 4ca4ddbc42
2 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -158,9 +158,8 @@ func resume_adventure(bp: Dictionary, params: Dictionary = {}) -> bool:
return true
if not bp_result.is_empty():
_pending_next_level = true
_stop.restore_resolved(bp_result)
_stop.restore_resolved(bp_result) # 已兑付不重兑付只重发(置态+重发收编一步——信号面归停点件)
_state = State.RUNNING
_stop.reemit_resolved() # 已兑付不重兑付只重发(信号面归停点件)
return true
_resume_bp = bp.duplicate(true)
# 充能读侧以行集为源(键值仅校验读数——回填时点在首关 bind 行集就位后,经 _loadout_on_level_inventory)
@@ -116,17 +116,17 @@ func _init() -> void:
"feats": [], "tree_rules": [], "battle_index": 1, "voucher_rap": 0, "voucher_time_sand": 0,
"node_type": "battle", "adv_bucket": {}}), "V6 前置:战斗受理")
# facts 组包经真实摇号路径消费(mines 全零时条件技 sneak_ambush 不入集合——facts 四键在位的可观察面)
Kit.check_quiet(orch._mines_hit_total == 0 and orch._mines_hit_last == 0 and orch._mines_hit_round == 0,
Kit.check_quiet(int(orch._mines_hits["total"]) == 0 and int(orch._mines_hits["last"]) == 0 and int(orch._mines_hits["round"]) == 0,
"V6 开战清零:三计数全零起〔触发器批 V6〕")
# 正向 blast(spark_aoe)不递增——负向计数守卫
orch._apply_flat_row({"cell_type": "blast", "polarity": "positive", "power": 2,
"display_name": "爆裂", "reward_id": "spark_aoe"}, "reward", Vector2i(-1, -1), 1)
Kit.check_quiet(orch._mines_hit_total == 0 and orch._mines_hit_round == 0,
Kit.check_quiet(int(orch._mines_hits["total"]) == 0 and int(orch._mines_hits["round"]) == 0,
"V6 正向 blast(spark_aoe)不递增(负向守卫——清图/爆裂格零误计)〔触发器批 V6〕")
# 负向 blast(雷)递增
orch._apply_flat_row({"cell_type": "blast", "polarity": "negative", "power": 2,
"display_name": "警觉", "reward_id": "enemy_alert"}, "reward", Vector2i(-1, -1), 1)
Kit.check_quiet(orch._mines_hit_total == 1 and orch._mines_hit_round == 1,
Kit.check_quiet(int(orch._mines_hits["total"]) == 1 and int(orch._mines_hits["round"]) == 1,
"V6 负向 blast(雷)递增恰一次〔触发器批 V6〕")
# ---- V7 池构成纪律(现行全表零违例+构造全条件池报错——跨表校验真实入口)----