拍卖行:修改掉落

This commit is contained in:
luying
2021-09-14 15:19:13 +08:00
parent d39fdc970b
commit b77dbe802a
6 changed files with 109 additions and 14 deletions

View File

@@ -1,7 +1,6 @@
// 公会权限
import { readFileAndParse, parseGoodStr } from '../util'
import { readFileAndParse } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../../pubUtils/interface';
export interface DicGuildAuction {
@@ -12,7 +11,7 @@ export interface DicGuildAuction {
// 最高名次
readonly max: number;
// 奖励
readonly rewards: RewardInter[];
readonly rewards: number;
}
export const dicGuildAuction = new Map<number, DicGuildAuction[]>();
@@ -21,7 +20,6 @@ export function loadGuildAuction() {
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUCTION);
arr.forEach(o => {
o.rewards = parseGoodStr(o.rewards);
let rank = dicGuildAuction.get(o.id)||[];
rank.push(o);
dicGuildAuction.set(o.id, rank);