新武将活动:修改字段以及ur武将处理

This commit is contained in:
luying
2022-10-12 10:35:14 +08:00
parent eccd9f0051
commit 9f5771e923
16 changed files with 79 additions and 69 deletions
+7 -3
View File
@@ -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;