28 lines
800 B
TypeScript
28 lines
800 B
TypeScript
/**
|
|
* 试炼类型配置表
|
|
*/
|
|
|
|
import { readFileAndParse } from '../util'
|
|
import { FILENAME } from '../../consts'
|
|
|
|
export interface DicRougeShopPlan {
|
|
readonly id: number;
|
|
readonly planId: number;
|
|
readonly passivecardPlanId: number; // 特性卡
|
|
readonly passiveCardRandomNum: number; // 玩家可以在商店随机出多少奖励
|
|
readonly holyCardPlanId: number; // 圣物
|
|
readonly holyCardRandomNum: number; // 玩家可以商店随机出多少奖励
|
|
}
|
|
|
|
|
|
export const dicRougeShopPlan = new Map<number, DicRougeShopPlan>();
|
|
export function loadRougeShopPlan() {
|
|
dicRougeShopPlan.clear();
|
|
|
|
let arr = readFileAndParse(FILENAME.DIC_ROUGE_SHOP_PLAN);
|
|
|
|
arr.forEach(o => {
|
|
dicRougeShopPlan.set(o.planId, o);
|
|
});
|
|
arr = undefined;
|
|
} |