iter41-卡2:呈现层结构收敛批:67清+2豁免+2展平改善——拆私有族+六状态件+ui_kit收敛+束收拢+print删;含u14补做、并master并案与收尾产出物

This commit is contained in:
DKChan committed 2026-10-29 00:14:52 +08:00
1 parent bc75dab615
commit 7beb9bfdd5
94 files changed
+3417 -5314

No files matched your search

+27 -22
View File
@@ -98,31 +98,36 @@ static func curio_pick_header(payload: Dictionary) -> String:
# 对齐 v2.2 追认 b 口径:小/大前缀(小GP/大GP 族)、恢复/AP 不带档位词;道具件掷定前置时
# treasure_line = 具体道具「名 · 效果摘要」行——常空走通用分支)
static func bonus_card_text(id: String, tier: String, value: int, treasure_line: String = "") -> String:
var ts := ""
if tier == "common":
ts = " · 小"
elif tier == "rare":
ts = " · 大"
match id:
"attack":
return "攻击力提升%s\n攻击 +%d" % [ts, value]
"max_hp":
return "生命上限提升%s\n生命上限 +%d" % [ts, value]
"armor":
return "护甲等级提升%s\n护甲 +%d" % [ts, value]
"gp":
return "GP 袋%s\nGP +%d" % [ts, value]
"heal":
return "恢复药剂\n生命 +%d(当即回复)" % value
"treasure_item":
if treasure_line != "":
return "秘宝\n%s" % treasure_line
return "秘宝\n随机获得一件"
"ap":
return "行动点提升\n每战首轮 AP +%d" % value
if id == "treasure_item":
return _bonus_treasure_line(treasure_line)
var ts := _tier_suffix(tier)
var templates := {"attack": "攻击力提升%s\n攻击 +%d", "max_hp": "生命上限提升%s\n生命上限 +%d",
"armor": "护甲等级提升%s\n护甲 +%d", "gp": "GP 袋%s\nGP +%d"}
if templates.has(id):
return templates[id] % [ts, value]
if id == "heal":
return "恢复药剂\n生命 +%d(当即回复)" % value
if id == "ap":
return "行动点提升\n每战首轮 AP +%d" % value
return id
## 档位尾注域(common=小/rare=大——旧载荷防御口径)
static func _tier_suffix(tier: String) -> String:
if tier == "common":
return " · 小"
if tier == "rare":
return " · 大"
return ""
## 秘宝卡文案域(treasure_line 空串=随机获得一件)
static func _bonus_treasure_line(treasure_line: String) -> String:
if treasure_line != "":
return "秘宝\n%s" % treasure_line
return "秘宝\n随机获得一件"
# 三选一兑付反馈行(选中件效果 + 丢弃提示;tier 缺省普通档——旧载荷防御口径)
static func bonus_result_text(result: Dictionary) -> String:
var name := ""