feat(稷下学宫): 修改带出英灵奖励数量, 修改特性卡随机权重(流派、品质、等级相关)

This commit is contained in:
zhangxk
2023-09-08 14:07:52 +08:00
parent 98b4b56143
commit e5bbd112b7
10 changed files with 8077 additions and 7656 deletions

View File

@@ -0,0 +1,28 @@
/**
* 流派增加权重
*/
import { readFileAndParse } from '../util'
import { FILENAME } from '../../consts'
export interface DicRougePassiveWeight {
readonly id: number;
readonly authorType: number; // 流派类型
readonly quality: number; // 品质
readonly level: number; // 等级
readonly authorTypeWeightAdd: number; // 流派增加权重
}
export const dicRougePassiveWeight = new Map<string, DicRougePassiveWeight>();
export function loadRougePassiveWeight() {
dicRougePassiveWeight.clear();
let arr = readFileAndParse(FILENAME.DIC_ROUGE_PASSIVE_WEIGHT);
arr.forEach(o => {
dicRougePassiveWeight.set(o.authorType + '_' + o.quality + '_' + o.level, o);
});
arr = undefined;
}