refactor(config): 统一初始金币配置并调整刷新时机

1. 将分散的初始金币常量迁移到FightSet枚举中,删除冗余的CardInitCoins
2. 调整刷新费用UI更新时机,确保驻场技能效果正确生效
This commit is contained in:
panFD
2026-06-20 14:42:19 +08:00
parent 107e7fde96
commit 0a281a95d1
4 changed files with 6 additions and 4 deletions

View File

@@ -505,6 +505,10 @@ export class MissionCardComp extends CCComp {
if (!smc.finish_guides.includes(3)) {
oops.gui.open(UIID.Guide3);
}
// 驻场技能可能影响刷新费用(如"刷新优惠"),延迟到下一帧刷新费用 UI
// 确保 MissSkillsComp 已创建 SkillBoxComp 并注册驻场效果
this.scheduleOnce(() => this.updateCoinAndCostUI(), 0);
}
/** 解除按钮监听,避免节点销毁后回调泄漏 */