From 84df55c72268e44608193d9467cd571207a85c2f Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Sat, 3 Oct 2026 00:32:01 +0800 Subject: [PATCH] =?UTF-8?q?MC=E6=88=98=E6=8A=A5=E5=A2=9Etaken=E6=89=BF?= =?UTF-8?q?=E4=BC=A4=E5=AD=97=E6=AE=B5=EF=BC=88k=E7=B3=BB=E6=95=B0?= =?UTF-8?q?=E5=88=86=E6=AF=8D=E8=A1=A5=E7=AE=97=E2=80=94=E2=80=942026-10-0?= =?UTF-8?q?3=E7=94=A8=E6=88=B7=E8=A3=81=E4=BB=B6=E5=9B=9B=E7=94=B2?= =?UTF-8?q?=EF=BC=89=EF=BC=9Aautoplay=E5=A2=9Emine=5Fdmg=E7=B4=AF=E8=AE=A1?= =?UTF-8?q?=EF=BC=88=E8=B8=A9=E9=9B=B7=E7=9B=B4=E4=BC=A4=E8=A1=8C=EF=BC=8C?= =?UTF-8?q?=E5=8F=A3=E5=BE=84=E4=B8=8E=E7=9C=9F=E4=BA=BA=E5=88=86=E6=9E=90?= =?UTF-8?q?=E7=AB=AF=E3=80=8C=E6=95=8C=E6=96=B9=E8=A1=8C=E5=8A=A8+?= =?UTF-8?q?=E8=B8=A9=E9=9B=B7=E7=9B=B4=E4=BC=A4=E3=80=8D=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=EF=BC=89+MC=E8=A1=8C=E5=8A=A0mine=5Fdmg/taken=E4=B8=A4?= =?UTF-8?q?=E6=A0=8F=EF=BC=9B=E6=A8=A1=E6=8B=9F=E6=97=A5=E5=BF=97=E5=B1=82?= =?UTF-8?q?=E9=9B=B6=E7=8E=A9=E6=B3=95=E6=94=B9=E5=8A=A8=EF=BC=8C=E5=AE=8C?= =?UTF-8?q?=E7=BE=8E=E6=A1=A3mine=5Fdmg=E6=81=920=E6=96=AD=E8=A8=80?= =?UTF-8?q?=E5=B0=8F=E6=A0=B7=E4=BF=9D=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/smoke/adventure_monte_carlo.gd | 2 ++ game/smoke/level_autoplay.gd | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/game/smoke/adventure_monte_carlo.gd b/game/smoke/adventure_monte_carlo.gd index 84f5b281..9ee0a3f3 100644 --- a/game/smoke/adventure_monte_carlo.gd +++ b/game/smoke/adventure_monte_carlo.gd @@ -62,6 +62,8 @@ func _initialize() -> void: "keystone_total": int(sum.get("keystone_total", -1)), "battles": int(st["battles"]), "rounds": int(st["rounds"]), "hero_dmg": int(st["hero_dmg"]), "mine_hits": int(st["mine_hits"]), + "mine_dmg": int(st.get("mine_dmg", 0)), + "taken": int(st["hero_dmg"]) + int(st.get("mine_dmg", 0)), "refreshes": int(st["refreshes"]), "choices": int(st["choices"]), "visited_count": (st["visited_ids"] as Array).size(), "encounter_max_hp_seq": st["encounter_max_hp_seq"], diff --git a/game/smoke/level_autoplay.gd b/game/smoke/level_autoplay.gd index 57b7699b..030674ac 100644 --- a/game/smoke/level_autoplay.gd +++ b/game/smoke/level_autoplay.gd @@ -55,7 +55,7 @@ static func run_level(db, seed_val: int, level_index: int, atk_pct: int, hp_pct: "rest_healed": 0, "hp_before_rest": -1, "defeat_node_index": -1, "defeat_node_id": -1, "defeat_node_type": "", "boss_depth": -1, "hp_at_boss": -1, "rows": [], "timeout": false, - "log_path": "", "policy": policy, "refreshes": 0, "mine_hits": 0, + "log_path": "", "policy": policy, "refreshes": 0, "mine_hits": 0, "mine_dmg": 0, "visited_ids": [], "choices": 0, "last_battle_enemies": [], "prng": _policy_rng(seed_val), "mine_slips": 0, "skip_digs": 0, "shop_buys": 0, } @@ -130,7 +130,7 @@ static func run_adventure(db, seed_val: int, atk_pct: int, hp_pct: int, collect_ "rest_healed": 0, "hp_before_rest": -1, "defeat_node_index": -1, "defeat_node_id": -1, "defeat_node_type": "", "boss_depth": -1, "hp_at_boss": -1, "rows": [], "timeout": false, - "log_path": "", "policy": policy, "refreshes": 0, "mine_hits": 0, + "log_path": "", "policy": policy, "refreshes": 0, "mine_hits": 0, "mine_dmg": 0, "visited_ids": [], "choices": 0, "last_battle_enemies": [], "summary": {}, "wallet_events": [], "encounter_max_hp_seq": [], "reward_events": [], "shop_gp_seq": [], # 商店房到达余额序(逐关 1 次——GP 跨关延续验收取数面) @@ -340,6 +340,8 @@ static func _on_step_row(row: Dictionary, _runner, st: Dictionary, collect_rows: if row.type == "damage" and row.source_class == "enemy_action": st.hero_dmg += int(row.value) _note_enemy(String(row.get("text", "")), st) + elif row.type == "damage" and row.source_class == "mine_hit" and "全体敌人" not in String(row.get("text", "")): + st.mine_dmg += int(row.value) # 踩雷直伤承伤(k 系数分母补算字段——口径与真人分析端「敌方行动+踩雷直伤」对齐) elif row.type == "cast" and row.source_class == "enemy_action": _note_enemy(String(row.get("text", "")), st) # 施放行(毒爆挂毒等——伤害行可能缺席的死亡遭遇仍可归因) if row.source_class == "mine_hit":