9 lines
389 B
TypeScript
9 lines
389 B
TypeScript
// 第三层实验结束,所有玩家统一采用原 C 组复活费用。
|
|
const REVIVE_COSTS = [500, 700, 900, 1100, 1300, 1500];
|
|
export const MAX_REVIVE_COST_STEP = REVIVE_COSTS.length - 1;
|
|
|
|
export function getReviveCoinCost(reviveCount: any): number {
|
|
const step = Math.max(0, Math.floor(Number(reviveCount) || 0));
|
|
return REVIVE_COSTS[Math.min(step, MAX_REVIVE_COST_STEP)];
|
|
}
|