merge(master): S9 类型闸修复批与两条工程条目出账 并入 iter37(收口前最后一次并源)

三处冲突全部按「取我方结构+确认对方注解已落新址」处置,零丢弃对方改动:
- main.gd:四解析函数体已由卡② r1-2 搬入 board_resolvers.gd,master 给 _identity_lookup 补的 -> Variant 在新件 identity_lookup:28 同形在位;build_adventure_params 的 SaveManagerCore/MetaProgressionCore 注解经自动合并落住(main.gd:367)
- views/battle_stage_view.gd:卡① d12 已改 (target_id: String, display_name: String) -> Variant,master 对旧一参形态的注解属同址更新,取我方
- views/board_view.gd:查表族/明度归一族已由卡③ r2-1 搬入 tile_palette.gd,master 的 lumas_out: Variant 注解在 tile_palette.gd:134 同形在位
待办清单.md:我方 P0 条目与 master 删两条已完成工程条目自动合并(64 条,S9/S13 条目出账)

合并后复核:13 个触及脚本 --check-only 零 Parse Error;master 修好的 S9 类型闸 PASS(其 26 处补注解零丢失、本批九新件零命中);gdstyle 216/216 基线内、新违规 0、恶化 0
This commit is contained in:
DKChan committed 2026-10-25 18:59:27 +08:00
commit 2dd3ec5640
18 files changed
+53 -99

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ extends RefCounted
# 同调位实时求值(营地进冒险前求值一次 + 装配覆盖层实时呈现共用同一口径):
# 槽位数量 = att_socket1..3 树点亮数(tree_level>=1),未点亮=0。
# db 参数保留(调用面两处签名不变——当前判定源零表依赖,参数弃置)。
static func slots(db, save) -> int:
static func slots(db: ConfigDb, save: Variant) -> int:
if save == null:
return 0
var n := 0
+2 -2
View File
@@ -163,7 +163,7 @@ func _flush_pending_reveals(ri: int) -> void:
# 补充事实面(fact 取值第二优先源——payload 未携带的运行态读数)
func _fx_fact(fact: String):
func _fx_fact(fact: String) -> Variant:
match fact:
"charge_layers":
return action_economy.charge_layers
@@ -1225,7 +1225,7 @@ func is_battle_live() -> bool:
# 奖励身份解析(组合根注入 BoardView 徽章回调的只读代理——Ready 相位守卫归 地图战斗资源)
func query_reward_identity(cell: Vector2i):
func query_reward_identity(cell: Vector2i) -> Variant:
return _reward_economy.query_identity(cell)
+2 -2
View File
@@ -84,7 +84,7 @@ func _fx_hits(event: String, payload: Dictionary) -> Array:
# 补充事实面(fact 取值第二优先源——payload 未携带的运行态读数:charge_layers 编排器每轮注入。
# hp_ratio 补入〔背水 when 面,敌技 damage_taken 载荷不带血比例时回落〕;
# fx_reveal_request=揭示效果回调〔斩首学者 kill 订阅面——编排器注入,入队授予段末兑付〕)
func _fx_fact(fact: String):
func _fx_fact(fact: String) -> Variant:
match fact:
"charge_layers":
return charge_layers
@@ -612,7 +612,7 @@ func _attack_label(base: String, crit: bool, discount: int) -> String:
# ---- 内部 ----
# 目标解析(结账时刻照规则看现场;句柄即 Dictionary 引用)
func _target_for(rule: String):
func _target_for(rule: String) -> Variant:
match rule:
TARGET_FRONT_ALIVE:
return units.default_target()
+1 -1
View File
@@ -309,7 +309,7 @@ func _cond_ok(ctx: EffectContext, c: Dictionary, payload: Dictionary, facts: Cal
return false
func _fact_value(ctx: EffectContext, fact: String, c: Dictionary, payload: Dictionary, facts: Callable):
func _fact_value(ctx: EffectContext, fact: String, c: Dictionary, payload: Dictionary, facts: Callable) -> Variant:
match fact:
"counter":
return counter(ctx, String(c.get("id", "")))
+1 -1
View File
@@ -630,7 +630,7 @@ func pick_next_node(node_id: int) -> bool:
# ---- 只读出口(E1/E3 封装收口:呈现层/工具经此读当前战斗,禁直读协作对象)----
func current_battle():
func current_battle() -> Variant:
return _settlement
# aux 解锁门控集注入(AdventureRunner 自 params 传递)
+4 -4
View File
@@ -101,7 +101,7 @@ func is_mapped(cell: Vector2i) -> bool:
return _phase == "ready" and _mapping.has(cell)
func query_identity(cell: Vector2i):
func query_identity(cell: Vector2i) -> Variant:
if _phase != "ready":
_diag("query_identity 非 Ready 相位")
return null
@@ -116,7 +116,7 @@ func query_identity(cell: Vector2i):
# 身份完整快照(轮内刷新批次隔离用——facts 缓冲期捕获,授予期 mapping 可能已换批):
# 返回与 grant 相同结构的快照(cell_type/display_name/power/effect_id/stacks 齐备),
# 供 战斗结算 冻结授予直通
func query_full_snapshot(cell: Vector2i):
func query_full_snapshot(cell: Vector2i) -> Variant:
if _phase != "ready":
_diag("query_full_snapshot 非 Ready 相位")
return null
@@ -128,7 +128,7 @@ func query_full_snapshot(cell: Vector2i):
# ---- 受理面(战斗结算 编排期调用;E6 收口:失败统一返回 null)----
func grant(cell: Vector2i):
func grant(cell: Vector2i) -> Variant:
if _phase != "ready":
_diag("grant 非 Ready 相位(E4/E7)")
return null
@@ -143,7 +143,7 @@ func grant(cell: Vector2i):
return snap
func grant_clear():
func grant_clear() -> Variant:
if _phase != "ready":
_diag("grant_clear 非 Ready 相位")
return null
+1 -1
View File
@@ -272,7 +272,7 @@ func heal(u: Dictionary, n: int) -> int:
# 固定顺位:行主序生成序最前存活敌;死亡后顺延;空 → null
func default_target():
func default_target() -> Variant:
for u in _enemies:
if u.alive:
return u