refactor: 将刷新石替换为银币作为卡牌刷新消耗

1. 重构全局配置,移除刷新石相关定义,新增银币刷新消耗常量
2. 新增局外持久货币银币的数据结构与管理逻辑
3. 重构卡牌刷新经济系统,统一使用银币进行刷新消耗
4. 更新UI显示与事件通知,适配银币系统变更
5. 调整清屏奖励逻辑,将刷新石奖励改为金币奖励
This commit is contained in:
panFD
2026-09-10 14:12:51 +08:00
parent a02bf54ede
commit 317a500439
9 changed files with 1763 additions and 343 deletions

View File

@@ -25,6 +25,8 @@ const { ccclass, property } = _decorator;
const FAST_CLEAR_COIN = 2;
/** 清屏奖励:极速清场(< 50% 时长) */
const ULTRA_CLEAR_COIN = 5;
/** 清屏奖励:全员存活(allAlive)额外金币 */
const ALL_ALIVE_COIN = 3;
/** 连杀分级金币爆发(tier 0/1/2 对应 5/10/20 连杀) */
const COMBO_COIN = [2, 5, 10];
@@ -58,7 +60,7 @@ export class BattleBannerComp extends CCComp {
private onWaveClear(event: string, data: { wave: number; clearTime: number; allAlive: boolean; fastClear: number }) {
if (data.allAlive) {
this.playBanner("Perfect!", new Color(255, 80, 80), 1.2);
MissionEconomy.addRefreshStone(1);
MissionEconomy.addCoin(ALL_ALIVE_COIN);
oops.audio.playEffect("music/flash");
} else if (data.fastClear === 2) {
this.playBanner("极速清场!", new Color(255, 170, 0), 1.15);