feat(battle): add silver and diamond reward system

1. 新增银币、钻石奖励配置到游戏结算配置表
2. 添加银币、钻石奖励的预制体与组件绑定
3. 实现结算逻辑:固定发放银币,按胜负区间随机发放钻石
4. 新增奖励UI展示条目,完整展示新增奖励类型
This commit is contained in:
pan
2026-09-10 15:36:43 +08:00
parent 317a500439
commit ecd6be7a84
8 changed files with 2366 additions and 59 deletions

View File

@@ -231,6 +231,13 @@ export const VICTORY_REWARD_SET = {
played_fragment: 1,
/** 随机英雄碎片数量(发放给随机抽中的 1 个英雄) */
random_fragment: 2,
/** 银币:固定发放,不分输赢 */
silver: 3,
/** 钻石:按输赢在 [min, max] 闭区间内随机(不参与 victory_multiplier) */
diamond: {
victory: { min: 5, max: 10 },
defeat: { min: 1, max: 3 },
},
/** 胜利加成系数(失败 1.0) */
victory_multiplier: 1.2,
};