新武将活动:修改字段以及ur武将处理
This commit is contained in:
@@ -10,16 +10,20 @@ export interface DicRecruit {
|
||||
readonly actorId: number;
|
||||
// 权重
|
||||
readonly weight: number;
|
||||
// 是否可以拜访
|
||||
readonly canVisit: number;
|
||||
// 是否可以许愿
|
||||
readonly canHope: number;
|
||||
|
||||
}
|
||||
|
||||
export const dicRecruit = new Array<DicRecruit>();
|
||||
export const dicRecruit = new Map<number, DicRecruit>();
|
||||
export function loadRecruit() {
|
||||
dicRecruit.splice(0, dicRecruit.length);
|
||||
dicRecruit.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_RECRUIT);
|
||||
|
||||
arr.forEach(o => {
|
||||
dicRecruit.push(o);
|
||||
dicRecruit.set(o.actorId, o);
|
||||
});
|
||||
|
||||
arr = undefined;
|
||||
|
||||
Reference in New Issue
Block a user