工程(S9类型闸正则修复): FUNC_DECL 认行尾冒号与 static 前缀两洞修复,存量 29 处补类型注解零行为变化,--code 域闸全绿(回执 domain=code)

This commit is contained in:
DKChan committed 2026-10-25 17:56:36 +08:00
1 parent ea9b366de6
commit ccd31de9ce
15 files changed
+27 -27

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
@@ -611,7 +611,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
@@ -616,7 +616,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