refactor(score): 重构积分段位与生涯积分逻辑

1. 更新段位配置阈值,改为按局均20分估算的累计分标准
2. 修改生涯积分逻辑,改为累计正贡献分且不会回退
3. 优化结算页积分展示和涨幅提示逻辑,新增升段提示
4. 完善文档注释,修正积分规则描述
This commit is contained in:
pan
2026-09-11 16:30:16 +08:00
parent bde6825aa0
commit 6afb8af05e
2 changed files with 39 additions and 38 deletions

View File

@@ -1,6 +1,9 @@
/**
* 玩家得分段位配置
* 依据玩家历史最高分(smc.data.score)划分段位:黄铜 -> 传说
* @file 玩家得分段位配置
* @description 依据生涯累计分(smc.data.score,只涨不跌)划分段位:黄铜 -> 传说
*
* 阈值尺度(慢节奏,局均 ~20 分估算):
* 白银 5 局 / 黄金 15 局 / 铂金 40 局 / 钻石 80 局 / 大师 160 局 / 传说 320 局
*/
/** 段位标识 */
@@ -31,13 +34,13 @@ export interface ScoreRankInfo {
* 顺序必须保持 minScore 升序,供二分/逆序查找使用
*/
export const ScoreRankList: ScoreRankInfo[] = [
{ tier: ScoreTier.BRONZE, name: "黄铜", minScore: 0, icon: "League_1_Bronze" },
{ tier: ScoreTier.SILVER, name: "白银", minScore: 2000, icon: "League_2_Silver" },
{ tier: ScoreTier.GOLD, name: "黄金", minScore: 5000, icon: "League_3_Gold" },
{ tier: ScoreTier.PLATINUM, name: "铂金", minScore: 10000, icon: "League_4_Platinum" },
{ tier: ScoreTier.DIAMOND, name: "钻石", minScore: 20000, icon: "League_5_Diamond" },
{ tier: ScoreTier.MASTER, name: "大师", minScore: 40000, icon: "League_6_Master" },
{ tier: ScoreTier.LEGEND, name: "传说", minScore: 80000, icon: "League_7_Legendary" },
{ tier: ScoreTier.BRONZE, name: "黄铜", minScore: 0, icon: "League_1_Bronze" },
{ tier: ScoreTier.SILVER, name: "白银", minScore: 100, icon: "League_2_Silver" },
{ tier: ScoreTier.GOLD, name: "黄金", minScore: 300, icon: "League_3_Gold" },
{ tier: ScoreTier.PLATINUM, name: "铂金", minScore: 800, icon: "League_4_Platinum" },
{ tier: ScoreTier.DIAMOND, name: "钻石", minScore: 1600, icon: "League_5_Diamond" },
{ tier: ScoreTier.MASTER, name: "大师", minScore: 3200, icon: "League_6_Master" },
{ tier: ScoreTier.LEGEND, name: "传说", minScore: 6400, icon: "League_7_Legendary" },
];
/**