百家学宫,名将谱战力
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// 百家学宫列表
|
||||
import { readJsonFile, parseNumberList } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicSchoolRate {
|
||||
|
||||
// id
|
||||
readonly id: number;
|
||||
// 品质
|
||||
readonly quality: number;
|
||||
// 星级
|
||||
readonly stars: number;
|
||||
// 觉醒星级
|
||||
readonly colorstars: number;
|
||||
// 主属性加百分比
|
||||
readonly mainAttrAPerent: number;
|
||||
// 次级属性加值
|
||||
readonly assiAttrAddValue: number;
|
||||
}
|
||||
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_SCHOOL_RATE);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicSchoolRate = new Map<string, DicSchoolRate>();
|
||||
|
||||
arr.forEach(o => {
|
||||
dicSchoolRate.set(`${o.stars}_${o.colorstars}_${o.quality}`, o);
|
||||
});
|
||||
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user