refactor(ui, talent): 重构图标加载逻辑并简化天赋文案

统一使用全局smc.uiconsAtlas缓存图标图集,移除各组件本地的缓存逻辑与变量
简化CardComp、SkillBoxComp的图标更新代码,删除冗余的异步加载步骤
将两处天赋名称简化,去掉多余的“额外”描述
This commit is contained in:
walkpan
2026-05-11 19:40:39 +08:00
parent 2413e4d1cc
commit 750e86e858
4 changed files with 12 additions and 35 deletions

View File

@@ -56,9 +56,9 @@ export const TalentConfig = {
maxLevel: 5, values: [2, 4, 6, 8, 10], costs: [1, 1, 2, 2, 3] },
{ id: TalentType.Puncture, name: "穿刺", icon: "1006", desc: "+{value}",
maxLevel: 5, values: [0.2, 0.4, 0.6, 0.8, 1.0], costs: [1, 1, 2, 2, 3] },
{ id: TalentType.DeadTrigger, name: "亡语额外触发", icon: "1006", desc: "+{value}次",
{ id: TalentType.DeadTrigger, name: "亡语触发", icon: "1006", desc: "+{value}次",
maxLevel: 1, values: [1], costs: [25] },
{ id: TalentType.Summon, name: "召唤额外触发", icon: "1006", desc: "+{value}次",
{ id: TalentType.Summon, name: "召唤触发", icon: "1006", desc: "+{value}次",
maxLevel: 1, values: [1], costs: [25] },
{ id: TalentType.BuyDiscount, name: "购买优惠", icon: "1006", desc: "-{value}金币",
maxLevel: 1, values: [1], costs: [10] },