✨ feat(稷下学宫): ff931afe4到7421822f6
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 试炼类型配置表
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user