字典:后台重载bug
This commit is contained in:
@@ -24,6 +24,8 @@ const DicApKeys: KeysEnum<DicAp> = {
|
|||||||
export const dicApMaxLevel = { max: 0 };
|
export const dicApMaxLevel = { max: 0 };
|
||||||
export const dicAp = new Map<number, DicAp>();
|
export const dicAp = new Map<number, DicAp>();
|
||||||
export function loadAp() {
|
export function loadAp() {
|
||||||
|
dicApMaxLevel.max = 0;
|
||||||
|
dicAp.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_AP);
|
let arr = readFileAndParse(FILENAME.DIC_AP);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
o.maxAp = o.maxAP;
|
o.maxAp = o.maxAP;
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ export interface DicApBuy {
|
|||||||
export const dicApMaxBuyTimes = { max: 0 };
|
export const dicApMaxBuyTimes = { max: 0 };
|
||||||
export const dicApBuy = new Map<number, RewardInter[]>();
|
export const dicApBuy = new Map<number, RewardInter[]>();
|
||||||
export function loadApBuy() {
|
export function loadApBuy() {
|
||||||
|
dicApMaxBuyTimes.max = 0;
|
||||||
|
dicApBuy.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_AP_BUY_COST);
|
let arr = readFileAndParse(FILENAME.DIC_AP_BUY_COST);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
o.cost = parseGoodStr(o.cost);
|
o.cost = parseGoodStr(o.cost);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const DicArmyDevelopConsumeKeys: KeysEnum<DicArmyDevelopConsume> = {
|
|||||||
|
|
||||||
export const dicArmyDevelopConsume = new Map<number, DicArmyDevelopConsume>();
|
export const dicArmyDevelopConsume = new Map<number, DicArmyDevelopConsume>();
|
||||||
export function loadArmyDevelopConsume() {
|
export function loadArmyDevelopConsume() {
|
||||||
|
dicArmyDevelopConsume.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_DEVELOPMENTCONSUME);
|
let arr = readFileAndParse(FILENAME.DIC_ARMY_DEVELOPMENTCONSUME);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ const DicArmyDonateKeys: KeysEnum<DicArmyDonate> = {
|
|||||||
|
|
||||||
export const dicArmyDonate = new Map<number, DicArmyDonate>();
|
export const dicArmyDonate = new Map<number, DicArmyDonate>();
|
||||||
export function loadArmyDonate() {
|
export function loadArmyDonate() {
|
||||||
|
dicArmyDonate.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_DONATE_BOX_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_ARMY_DONATE_BOX_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export const dicArmyTrainJuDian = new Map<number, DicArmyTrainJuDian>();
|
|||||||
export const dicLastGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最后据点id
|
export const dicLastGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最后据点id
|
||||||
export const dicFirstGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最先据点id
|
export const dicFirstGuildTrainIdOfLv = new Map<number, number>(); // 每级试炼场等级的最先据点id
|
||||||
export function loadArmyTrainJuDian() {
|
export function loadArmyTrainJuDian() {
|
||||||
|
dicArmyTrainJuDian.clear();
|
||||||
dicLastGuildTrainIdOfLv.clear();
|
dicLastGuildTrainIdOfLv.clear();
|
||||||
dicFirstGuildTrainIdOfLv.clear();
|
dicFirstGuildTrainIdOfLv.clear();
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export interface DicBlueprtCompose {
|
|||||||
|
|
||||||
export const dicBlueprtCompose = new Map<number, DicBlueprtCompose>();
|
export const dicBlueprtCompose = new Map<number, DicBlueprtCompose>();
|
||||||
export function loadBlueprtCompose() {
|
export function loadBlueprtCompose() {
|
||||||
|
dicBlueprtCompose.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_BLUEPRT_COMPOSE);
|
let arr = readFileAndParse(FILENAME.DIC_BLUEPRT_COMPOSE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export interface DicCharExp {
|
|||||||
|
|
||||||
export const dicCharExp = new Map<number, number>();
|
export const dicCharExp = new Map<number, number>();
|
||||||
export function loadCharExp() {
|
export function loadCharExp() {
|
||||||
|
dicCharExp.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_CHAR_EXP);
|
let arr = readFileAndParse(FILENAME.DIC_CHAR_EXP);
|
||||||
|
|
||||||
let exp = 0;
|
let exp = 0;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export interface DicChatAccuse {
|
|||||||
|
|
||||||
export const dicChatAccuse = new Map<number, DicChatAccuse>();
|
export const dicChatAccuse = new Map<number, DicChatAccuse>();
|
||||||
export function loadChatAccuse() {
|
export function loadChatAccuse() {
|
||||||
|
dicChatAccuse.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_CHAT_ACCUSE);
|
let arr = readFileAndParse(FILENAME.DIC_CHAT_ACCUSE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
// 聊天模板表
|
|
||||||
import { readFileAndParse } from '../util'
|
|
||||||
import { FILENAME } from '../../consts'
|
|
||||||
|
|
||||||
export interface DicChatSystem {
|
|
||||||
|
|
||||||
// 模板 id
|
|
||||||
readonly id: number;
|
|
||||||
// 模板名称
|
|
||||||
readonly name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_CHAT_SYSTEM);
|
|
||||||
|
|
||||||
export const dicChatSystem = new Map<number, DicChatSystem>();
|
|
||||||
|
|
||||||
arr.forEach(o => {
|
|
||||||
dicChatSystem.set(o.id, o);
|
|
||||||
});
|
|
||||||
arr = undefined;
|
|
||||||
@@ -24,7 +24,7 @@ export interface DicCityActivity {
|
|||||||
|
|
||||||
export const dicCityActivity = new Map<number, DicCityActivity>();
|
export const dicCityActivity = new Map<number, DicCityActivity>();
|
||||||
export function loadCityActivity() {
|
export function loadCityActivity() {
|
||||||
|
dicCityActivity.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY);
|
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export interface DicCityActivityReward {
|
|||||||
|
|
||||||
export const dicCityActivityReward = new Map<number, DicCityActivityReward[]>();
|
export const dicCityActivityReward = new Map<number, DicCityActivityReward[]>();
|
||||||
export function loadCityActivityReward() {
|
export function loadCityActivityReward() {
|
||||||
|
dicCityActivityReward.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_CITY_ACTIVITY_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export const dicEvent = new Map<number, DicEvent>();
|
|||||||
export const dicEventList = new Array<DicEvent>();
|
export const dicEventList = new Array<DicEvent>();
|
||||||
|
|
||||||
export function loadEvent () {
|
export function loadEvent () {
|
||||||
|
dicEvent.clear();
|
||||||
dicEventList.splice(0, dicEventList.length);
|
dicEventList.splice(0, dicEventList.length);
|
||||||
let arr = readFileAndParse(FILENAME.DIC_EVENT);
|
let arr = readFileAndParse(FILENAME.DIC_EVENT);
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export interface DicExpedition {
|
|||||||
|
|
||||||
export const dicExpedition = new Map<number, DicExpedition>();
|
export const dicExpedition = new Map<number, DicExpedition>();
|
||||||
export function loadExpedition() {
|
export function loadExpedition() {
|
||||||
|
dicExpedition.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION);
|
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface DicExpeditionPoint {
|
|||||||
|
|
||||||
export const dicExpeditionPoint = new Map<number, DicExpeditionPoint>();
|
export const dicExpeditionPoint = new Map<number, DicExpeditionPoint>();
|
||||||
export function loadExpeditionPoint() {
|
export function loadExpeditionPoint() {
|
||||||
|
dicExpeditionPoint.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION_POINT);
|
let arr = readFileAndParse(FILENAME.DIC_EXPEDITION_POINT);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export interface DicFashions {
|
|||||||
|
|
||||||
export const dicFashions = new Map<number, DicFashions>();
|
export const dicFashions = new Map<number, DicFashions>();
|
||||||
export function loadFashions() {
|
export function loadFashions() {
|
||||||
|
dicFashions.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_FASHIONS);
|
let arr = readFileAndParse(FILENAME.DIC_FASHIONS);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ export interface DicFriendShip {
|
|||||||
export const friendShips = new Map<string, DicFriendShip>();
|
export const friendShips = new Map<string, DicFriendShip>();
|
||||||
export const friendShipHidAandIds = new Map<number, {actorId: number, level:number}>();
|
export const friendShipHidAandIds = new Map<number, {actorId: number, level:number}>();
|
||||||
export function loadFriendShip() {
|
export function loadFriendShip() {
|
||||||
|
friendShips.clear();
|
||||||
|
friendShipHidAandIds.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP);
|
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export interface DicFriendShipLevel {
|
|||||||
export const maxFriendShipLv = { max: 0 };
|
export const maxFriendShipLv = { max: 0 };
|
||||||
export const dicFriendShipLevelMap = new Map<number, DicFriendShipLevel>();
|
export const dicFriendShipLevelMap = new Map<number, DicFriendShipLevel>();
|
||||||
export function loadFriendShipLevel() {
|
export function loadFriendShipLevel() {
|
||||||
|
maxFriendShipLv.max = 0;
|
||||||
|
dicFriendShipLevelMap.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP_LEVEL);
|
let arr = readFileAndParse(FILENAME.DIC_FRIEND_SHIP_LEVEL);
|
||||||
let expSum = 0;
|
let expSum = 0;
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export interface DicFuncSwitch {
|
|||||||
|
|
||||||
export const dicFuncSwitch = new Map<number, DicFuncSwitch>();
|
export const dicFuncSwitch = new Map<number, DicFuncSwitch>();
|
||||||
export function loadFuncSwitch() {
|
export function loadFuncSwitch() {
|
||||||
|
dicFuncSwitch.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_FUNC_SWITCH);
|
let arr = readFileAndParse(FILENAME.DIC_FUNC_SWITCH);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export interface DicGacha {
|
|||||||
|
|
||||||
export const dicGacha = new Map<number, DicGacha>(); // id => dic
|
export const dicGacha = new Map<number, DicGacha>(); // id => dic
|
||||||
export function loadGacha() {
|
export function loadGacha() {
|
||||||
|
dicGacha.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GACHA);
|
let arr = readFileAndParse(FILENAME.DIC_GACHA);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ export interface DicGachaContent {
|
|||||||
export const dicGachaContent = new Map<number, DicGachaContent>(); // id => dic
|
export const dicGachaContent = new Map<number, DicGachaContent>(); // id => dic
|
||||||
export const dicGachaContentHero = new Map<number, number>(); // quality => dic
|
export const dicGachaContentHero = new Map<number, number>(); // quality => dic
|
||||||
export function loadGachaContent() {
|
export function loadGachaContent() {
|
||||||
|
dicGachaContent.clear();
|
||||||
|
dicGachaContentHero.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GACHA_CONTENT);
|
let arr = readFileAndParse(FILENAME.DIC_GACHA_CONTENT);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export interface DicGkPvp {
|
|||||||
|
|
||||||
export const dicGateActivityPoint = new Map<number, number>();
|
export const dicGateActivityPoint = new Map<number, number>();
|
||||||
export function loadGateActivityPoint() {
|
export function loadGateActivityPoint() {
|
||||||
|
dicGateActivityPoint.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GATE_ACTIVITY_POINT);
|
let arr = readFileAndParse(FILENAME.DIC_GATE_ACTIVITY_POINT);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export interface DicGiftPackage {
|
|||||||
|
|
||||||
export const dicGiftPackage = new Map<number, DicGiftPackage>();
|
export const dicGiftPackage = new Map<number, DicGiftPackage>();
|
||||||
export function loadGiftPackage() {
|
export function loadGiftPackage() {
|
||||||
|
dicGiftPackage.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GIFT_PACKAGE);
|
let arr = readFileAndParse(FILENAME.DIC_GIFT_PACKAGE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export interface DicGkPvp {
|
|||||||
export const dicGkPvp = new Map<number, DicGkPvp>();
|
export const dicGkPvp = new Map<number, DicGkPvp>();
|
||||||
export const dicGkPvps = new Array<number>();
|
export const dicGkPvps = new Array<number>();
|
||||||
export function loadGkPvp() {
|
export function loadGkPvp() {
|
||||||
|
dicGkPvp.clear();
|
||||||
dicGkPvps.splice(0, dicGkPvps.length);
|
dicGkPvps.splice(0, dicGkPvps.length);
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GK_PVP);
|
let arr = readFileAndParse(FILENAME.DIC_GK_PVP);
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,11 @@ export const blueprt = new Map<number, Array<number>>();
|
|||||||
export const figureCondition = new Map<number, { params: number[], id: number, gid: number }[]>(); // type => {params, id, gid}
|
export const figureCondition = new Map<number, { params: number[], id: number, gid: number }[]>(); // type => {params, id, gid}
|
||||||
|
|
||||||
export function loadGoods() {
|
export function loadGoods() {
|
||||||
|
dicJewel.clear();
|
||||||
|
dicGoods.clear();
|
||||||
|
blueprt.clear();
|
||||||
|
figureCondition.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GOODS);
|
let arr = readFileAndParse(FILENAME.DIC_GOODS);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export interface DicGuildActiveDayReward {
|
|||||||
|
|
||||||
export const dicGuildActiveDayReward = new Map<number, DicGuildActiveDayReward>();
|
export const dicGuildActiveDayReward = new Map<number, DicGuildActiveDayReward>();
|
||||||
export function loadGuildActiveDayReward() {
|
export function loadGuildActiveDayReward() {
|
||||||
|
dicGuildActiveDayReward.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_DAY_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_DAY_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ export interface DicGuildActiveWays {
|
|||||||
|
|
||||||
export const dicGuildActiveWays = new Map<number, DicGuildActiveWays>();
|
export const dicGuildActiveWays = new Map<number, DicGuildActiveWays>();
|
||||||
export function loadGuildActiveWays() {
|
export function loadGuildActiveWays() {
|
||||||
|
dicGuildActiveWays.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_ACTIVE_POINT_WAYS);
|
let arr = readFileAndParse(FILENAME.DIC_ARMY_ACTIVE_POINT_WAYS);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ export interface DicGuildActivity {
|
|||||||
|
|
||||||
export const dicGuildActivity = new Map<number, DicGuildActivity>();
|
export const dicGuildActivity = new Map<number, DicGuildActivity>();
|
||||||
export function loadGuildActivity() {
|
export function loadGuildActivity() {
|
||||||
|
dicGuildActivity.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_ACTIVITY);
|
let arr = readFileAndParse(FILENAME.DIC_GUILD_ACTIVITY);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export interface DicGuildAuction {
|
|||||||
|
|
||||||
export const dicGuildAuction = new Map<number, DicGuildAuction[]>();
|
export const dicGuildAuction = new Map<number, DicGuildAuction[]>();
|
||||||
export function loadGuildAuction() {
|
export function loadGuildAuction() {
|
||||||
|
dicGuildAuction.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUCTION);
|
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUCTION);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export interface DicGuildAuth {
|
|||||||
|
|
||||||
export const dicGuildAuth = new Map<number, number[]>();
|
export const dicGuildAuth = new Map<number, number[]>();
|
||||||
export function loadGuildAuth() {
|
export function loadGuildAuth() {
|
||||||
|
dicGuildAuth.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUTH);
|
let arr = readFileAndParse(FILENAME.DIC_GUILD_AUTH);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export interface DicGuildPosition {
|
|||||||
|
|
||||||
export const dicGuildPosition = new Map<number, DicGuildPosition>();
|
export const dicGuildPosition = new Map<number, DicGuildPosition>();
|
||||||
export function loadGuildPosition() {
|
export function loadGuildPosition() {
|
||||||
|
dicGuildPosition.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_GUILD_POSITION);
|
let arr = readFileAndParse(FILENAME.DIC_GUILD_POSITION);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ const DicGuildTrainInfoKeys: KeysEnum<DicGuildTrainInfo> = {
|
|||||||
|
|
||||||
export const dicGuildTrainInfo = new Map<string, DicGuildTrainInfo>();
|
export const dicGuildTrainInfo = new Map<string, DicGuildTrainInfo>();
|
||||||
export function loadGuildTrainInfo() {
|
export function loadGuildTrainInfo() {
|
||||||
|
dicGuildTrainInfo.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_INFO);
|
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_INFO);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ export const dicMyHeroes = new Array<number>();
|
|||||||
export const dicHero = new Map<number, DicHero>();
|
export const dicHero = new Map<number, DicHero>();
|
||||||
export function loadHero() {
|
export function loadHero() {
|
||||||
dicMyHeroes.splice(0, dicMyHeroes.length);
|
dicMyHeroes.splice(0, dicMyHeroes.length);
|
||||||
|
dicHero.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO);
|
let arr = readFileAndParse(FILENAME.DIC_HERO);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
if(o.heroId > 0 && o.heroId <= 300) {
|
if(o.heroId > 0 && o.heroId <= 300) {
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ const DicHeroEquipKeys: KeysEnum<DicHeroEquip> = {
|
|||||||
}
|
}
|
||||||
export const dicHeroEquip = new Map<number, DicHeroEquip>();
|
export const dicHeroEquip = new Map<number, DicHeroEquip>();
|
||||||
export function loadHeroEquip() {
|
export function loadHeroEquip() {
|
||||||
|
dicHeroEquip.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_EQUIP);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_EQUIP);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export interface DicHeroQualityUp {
|
|||||||
|
|
||||||
export const dicHeroQualityUp = new Map<number, DicHeroQualityUp>();
|
export const dicHeroQualityUp = new Map<number, DicHeroQualityUp>();
|
||||||
export function loadHeroQualityUp() {
|
export function loadHeroQualityUp() {
|
||||||
|
dicHeroQualityUp.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_QUALITY_UP);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_QUALITY_UP);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ export interface DicHeroScroll {
|
|||||||
export const dicHeroScroll = new Map<string, DicHeroScroll>();
|
export const dicHeroScroll = new Map<string, DicHeroScroll>();
|
||||||
export const preHeroScroll = new Map<number, DicHeroScroll>(); // 前一个
|
export const preHeroScroll = new Map<number, DicHeroScroll>(); // 前一个
|
||||||
export function loadHeroScroll() {
|
export function loadHeroScroll() {
|
||||||
|
dicHeroScroll.clear();
|
||||||
|
preHeroScroll.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_SCROLL);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_SCROLL);
|
||||||
let pre: DicHeroScroll;
|
let pre: DicHeroScroll;
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export interface DicHeroSkill {
|
|||||||
|
|
||||||
export const dicHeroSkill = new Map<number, DicHeroSkill>();
|
export const dicHeroSkill = new Map<number, DicHeroSkill>();
|
||||||
export function loadHeroSkill() {
|
export function loadHeroSkill() {
|
||||||
|
dicHeroSkill.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_SKILL);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_SKILL);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
o.starSeidArr = parseSeid(o.starSeid);
|
o.starSeidArr = parseSeid(o.starSeid);
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ const DicHeroStarKeys: KeysEnum<DicHeroStar> = {id: true, classType: true, quali
|
|||||||
|
|
||||||
export const dicHeroStar = new Map<string, DicHeroStar>();
|
export const dicHeroStar = new Map<string, DicHeroStar>();
|
||||||
export function loadHeroStar() {
|
export function loadHeroStar() {
|
||||||
|
dicHeroStar.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_STAR);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_STAR);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ const DicHeroWakeKeys: KeysEnum<DicHeroWake> = {id: true, classType: true, quali
|
|||||||
|
|
||||||
export const dicHeroWake = new Map<string, DicHeroWake>();
|
export const dicHeroWake = new Map<string, DicHeroWake>();
|
||||||
export function loadHeroWake() {
|
export function loadHeroWake() {
|
||||||
|
dicHeroWake.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_HERO_WAKE);
|
let arr = readFileAndParse(FILENAME.DIC_HERO_WAKE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -38,7 +38,10 @@ export const jobClassMaxGrades = new Map<number, {grade:number, jobid:number}>()
|
|||||||
export const jobClassAndgrades = new Map<string, {jobid:number, unlockLevel:number}>();
|
export const jobClassAndgrades = new Map<string, {jobid:number, unlockLevel:number}>();
|
||||||
|
|
||||||
export function loadJob() {
|
export function loadJob() {
|
||||||
|
dicJob.clear();
|
||||||
|
jobClassMaxGrades.clear();
|
||||||
|
jobClassAndgrades.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_JOB);
|
let arr = readFileAndParse(FILENAME.DIC_JOB);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export const dicKingExp = new Map<number, {sum: number, cur: number}>();
|
|||||||
export const maxPlayerLv = { max: 0 };
|
export const maxPlayerLv = { max: 0 };
|
||||||
|
|
||||||
export function loadKingExp() {
|
export function loadKingExp() {
|
||||||
|
dicKingExp.clear();
|
||||||
|
maxPlayerLv.max = 0;
|
||||||
let arr = readFileAndParse(FILENAME.DIC_KING_EXP);
|
let arr = readFileAndParse(FILENAME.DIC_KING_EXP);
|
||||||
let exp = 0;
|
let exp = 0;
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ export interface DicKingExpRatio {
|
|||||||
|
|
||||||
export const dicKingExpRatio = new Map<number, Map<KING_EXP_RATIO_TYPE, number>>();
|
export const dicKingExpRatio = new Map<number, Map<KING_EXP_RATIO_TYPE, number>>();
|
||||||
export function loadKingExpRatio() {
|
export function loadKingExpRatio() {
|
||||||
|
dicKingExpRatio.clear();
|
||||||
|
|
||||||
let arr1 = readFileAndParse(FILENAME.DIC_EXP_RATIO);
|
let arr1 = readFileAndParse(FILENAME.DIC_EXP_RATIO);
|
||||||
arr1.forEach(o => {
|
arr1.forEach(o => {
|
||||||
let map = new Map<KING_EXP_RATIO_TYPE, number>();
|
let map = new Map<KING_EXP_RATIO_TYPE, number>();
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ export interface DicMail {
|
|||||||
|
|
||||||
export const dicMail = new Map<number, DicMail>();
|
export const dicMail = new Map<number, DicMail>();
|
||||||
export function loadMail() {
|
export function loadMail() {
|
||||||
|
dicMail.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_MAIL);
|
let arr = readFileAndParse(FILENAME.DIC_MAIL);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
o.time = o.time * 60 * 60;
|
o.time = o.time * 60 * 60;
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export interface DicMainTaskStage {
|
|||||||
|
|
||||||
export const dicMainTaskStage = new Map<number, DicMainTaskStage>();
|
export const dicMainTaskStage = new Map<number, DicMainTaskStage>();
|
||||||
export function loadMainTaskStage() {
|
export function loadMainTaskStage() {
|
||||||
|
dicMainTaskStage.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_MAIN_TASK_STAGE);
|
let arr = readFileAndParse(FILENAME.DIC_MAIN_TASK_STAGE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export interface DicPvpOpponent {
|
|||||||
|
|
||||||
export const dicPvpOpponent = new Map<number, DicPvpOpponent>();
|
export const dicPvpOpponent = new Map<number, DicPvpOpponent>();
|
||||||
export function loadPvpOpponent() {
|
export function loadPvpOpponent() {
|
||||||
|
dicPvpOpponent.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_PVP_OPPONENT);
|
let arr = readFileAndParse(FILENAME.DIC_PVP_OPPONENT);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ export const dicRankRewads = new Array<DicRankRewads>();
|
|||||||
export const dicRankMax: { max: DicRankRewads } = { max: undefined };
|
export const dicRankMax: { max: DicRankRewads } = { max: undefined };
|
||||||
export function loadPvpRankReward() {
|
export function loadPvpRankReward() {
|
||||||
dicRankRewads.splice(0, dicRankRewads.length);
|
dicRankRewads.splice(0, dicRankRewads.length);
|
||||||
|
dicRankMax.max = undefined;
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_PVP_RANK_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_PVP_RANK_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ export interface DicPvpRefreshConsume {
|
|||||||
export const dicPvpRefreshConsume = new Map<number, RewardInter[]>();
|
export const dicPvpRefreshConsume = new Map<number, RewardInter[]>();
|
||||||
export const maxPvpRefreshCnt = { max: 0 };
|
export const maxPvpRefreshCnt = { max: 0 };
|
||||||
export function loadPvpRefreshConsume() {
|
export function loadPvpRefreshConsume() {
|
||||||
|
dicPvpRefreshConsume.clear();
|
||||||
|
maxPvpRefreshCnt.max = 0;
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_PVP_REFRESH_CONSUME);
|
let arr = readFileAndParse(FILENAME.DIC_PVP_REFRESH_CONSUME);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ export interface DicQuenchConsume {
|
|||||||
|
|
||||||
export const dicQuenchConsume = new Map<string, RewardInter[]>(); // equipLvl&quality => dic
|
export const dicQuenchConsume = new Map<string, RewardInter[]>(); // equipLvl&quality => dic
|
||||||
export function loadQuenchConsume() {
|
export function loadQuenchConsume() {
|
||||||
|
dicQuenchConsume.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_QUENCH_CONSUME);
|
let arr = readFileAndParse(FILENAME.DIC_QUENCH_CONSUME);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ export interface DicQuestion {
|
|||||||
|
|
||||||
export const dicQuestion = new Map<number, DicQuestion>();
|
export const dicQuestion = new Map<number, DicQuestion>();
|
||||||
export function loadQuestion() {
|
export function loadQuestion() {
|
||||||
|
dicQuestion.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_QUESTION);
|
let arr = readFileAndParse(FILENAME.DIC_QUESTION);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ export interface DicRMB {
|
|||||||
|
|
||||||
export const dicRMB = new Map<string, DicRMB>();
|
export const dicRMB = new Map<string, DicRMB>();
|
||||||
export function loadRMB() {
|
export function loadRMB() {
|
||||||
|
dicRMB.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_RMB);
|
let arr = readFileAndParse(FILENAME.DIC_RMB);
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
dicRMB.set(o.productID, o);
|
dicRMB.set(o.productID, o);
|
||||||
|
|||||||
@@ -28,7 +28,9 @@ const DicRaceKeys: KeysEnum<DicRaceActivity> = {id: true, type: true, effectType
|
|||||||
export const dicRaceActivity = new Map<number, DicRaceActivity>();
|
export const dicRaceActivity = new Map<number, DicRaceActivity>();
|
||||||
export const dicRaceTypes = new Map<number, Map<number, number[]>>();
|
export const dicRaceTypes = new Map<number, Map<number, number[]>>();
|
||||||
export function loadRaceActivity() {
|
export function loadRaceActivity() {
|
||||||
|
dicRaceActivity.clear();
|
||||||
|
dicRaceTypes.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_RACE_ACTIVITY);
|
let arr = readFileAndParse(FILENAME.DIC_RACE_ACTIVITY);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ export interface DicRandomEffectPool {
|
|||||||
|
|
||||||
export const dicRandomEffectPool = new Map<number, DicRandomEffectPool>();
|
export const dicRandomEffectPool = new Map<number, DicRandomEffectPool>();
|
||||||
export function loadRandomEffectPool() {
|
export function loadRandomEffectPool() {
|
||||||
|
dicRandomEffectPool.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_RANDOM_EFFECT_POOL);
|
let arr = readFileAndParse(FILENAME.DIC_RANDOM_EFFECT_POOL);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ export interface DicRankReward {
|
|||||||
|
|
||||||
export const dicRankReward = new Map<number, DicRankReward>();
|
export const dicRankReward = new Map<number, DicRankReward>();
|
||||||
export function loadRankReward() {
|
export function loadRankReward() {
|
||||||
|
dicRankReward.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_RANK_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_RANK_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ export interface DicRefine {
|
|||||||
|
|
||||||
export const dicRefine = new Map<number, DicRefine>();
|
export const dicRefine = new Map<number, DicRefine>();
|
||||||
export function loadRefine() {
|
export function loadRefine() {
|
||||||
|
dicRefine.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_REFINE);
|
let arr = readFileAndParse(FILENAME.DIC_REFINE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export interface DicRoleFriend {
|
|||||||
|
|
||||||
export const dicRoleFriend = new Map<number, DicRoleFriend>();
|
export const dicRoleFriend = new Map<number, DicRoleFriend>();
|
||||||
export function loadRoleFriend() {
|
export function loadRoleFriend() {
|
||||||
|
dicRoleFriend.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND);
|
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export interface DicRoleFriendLv {
|
|||||||
|
|
||||||
export const dicRoleFriendLv = new Map<number, DicRoleFriendLv>();
|
export const dicRoleFriendLv = new Map<number, DicRoleFriendLv>();
|
||||||
export function loadRoleFriendLv() {
|
export function loadRoleFriendLv() {
|
||||||
|
dicRoleFriendLv.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND_LEVEL);
|
let arr = readFileAndParse(FILENAME.DIC_ROLE_FRIEND_LEVEL);
|
||||||
|
|
||||||
let sum = 0;
|
let sum = 0;
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ export interface DicSchool {
|
|||||||
|
|
||||||
export const dicSchool = new Map<number, DicSchool>();
|
export const dicSchool = new Map<number, DicSchool>();
|
||||||
export function loadSchool() {
|
export function loadSchool() {
|
||||||
|
dicSchool.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SCHOOL);
|
let arr = readFileAndParse(FILENAME.DIC_SCHOOL);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ export interface DicSchoolRate {
|
|||||||
|
|
||||||
export const dicSchoolRate = new Map<string, DicSchoolRate>();
|
export const dicSchoolRate = new Map<string, DicSchoolRate>();
|
||||||
export function loadSchoolRate() {
|
export function loadSchoolRate() {
|
||||||
|
dicSchoolRate.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SCHOOL_RATE);
|
let arr = readFileAndParse(FILENAME.DIC_SCHOOL_RATE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ export interface DicSe {
|
|||||||
|
|
||||||
export const dicSe = new Map<number, DicSe>();
|
export const dicSe = new Map<number, DicSe>();
|
||||||
export function loadSe() {
|
export function loadSe() {
|
||||||
|
dicSe.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SE);
|
let arr = readFileAndParse(FILENAME.DIC_SE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ export interface DicServerName {
|
|||||||
export const dicServerName = new Map<number, string>();
|
export const dicServerName = new Map<number, string>();
|
||||||
export const dicServerGroupName = new Map<number, string>();
|
export const dicServerGroupName = new Map<number, string>();
|
||||||
export function loadServerName() {
|
export function loadServerName() {
|
||||||
|
dicServerName.clear();
|
||||||
|
dicServerGroupName.clear();
|
||||||
|
|
||||||
{
|
{
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SERVER_NAME);
|
let arr = readFileAndParse(FILENAME.DIC_SERVER_NAME);
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ export interface DicShopList {
|
|||||||
|
|
||||||
export const dicShopList = new Map<number, DicShopList>();
|
export const dicShopList = new Map<number, DicShopList>();
|
||||||
export function loadShopList() {
|
export function loadShopList() {
|
||||||
|
dicShopList.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SHOP_LIST);
|
let arr = readFileAndParse(FILENAME.DIC_SHOP_LIST);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ export interface DicStrengthenCost {
|
|||||||
|
|
||||||
export const dicStrengthenCost = new Map<number, number>();
|
export const dicStrengthenCost = new Map<number, number>();
|
||||||
export function loadStrengthenCost() {
|
export function loadStrengthenCost() {
|
||||||
|
dicStrengthenCost.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_STRENGTHEN_COST);
|
let arr = readFileAndParse(FILENAME.DIC_STRENGTHEN_COST);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -168,6 +168,16 @@ export const dicStoreBase = new Map<number, DicWishPoolBase>(); // 许愿池
|
|||||||
export const maxMemberCnt = { max: 0 }; // 满配最大人数
|
export const maxMemberCnt = { max: 0 }; // 满配最大人数
|
||||||
|
|
||||||
export function loadStructure() {
|
export function loadStructure() {
|
||||||
|
dicStructureConsume.clear();
|
||||||
|
dicCenterBase.clear();
|
||||||
|
dicEquipPriduceBase.clear();
|
||||||
|
dicBossBase.clear();
|
||||||
|
dicBossBaseByBossLv.clear();
|
||||||
|
dicTrainBase.clear();
|
||||||
|
dicDonateBase.clear();
|
||||||
|
dicWishPoolBase.clear();
|
||||||
|
dicStoreBase.clear();
|
||||||
|
maxMemberCnt.max = 0;
|
||||||
|
|
||||||
const DicStoreKeys: KeysEnum<DicStoreBase> = {
|
const DicStoreKeys: KeysEnum<DicStoreBase> = {
|
||||||
id: true,
|
id: true,
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ export interface DicSuit {
|
|||||||
export const dicSuit = new Map<number, DicSuit>();
|
export const dicSuit = new Map<number, DicSuit>();
|
||||||
export const dicSuitByTypeAndLv = new Map<string, DicSuit>();
|
export const dicSuitByTypeAndLv = new Map<string, DicSuit>();
|
||||||
export function loadSuit() {
|
export function loadSuit() {
|
||||||
|
dicSuit.clear();
|
||||||
|
dicSuitByTypeAndLv.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_SUIT);
|
let arr = readFileAndParse(FILENAME.DIC_SUIT);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ taskMap.set(TASK_FUN_TYPE.ACHIEVEMENT, dicAchievement);
|
|||||||
|
|
||||||
export const dicTaskType = new Map<number, DicTask[]>();
|
export const dicTaskType = new Map<number, DicTask[]>();
|
||||||
export function loadTask() {
|
export function loadTask() {
|
||||||
|
dicMainTask.clear();
|
||||||
|
dicDailyTask.clear();
|
||||||
|
dicAchievement.clear();
|
||||||
|
|
||||||
const arrMainTask = readFileAndParse(FILENAME.DIC_MAIN_TASK);
|
const arrMainTask = readFileAndParse(FILENAME.DIC_MAIN_TASK);
|
||||||
arrMainTask.forEach(o => {
|
arrMainTask.forEach(o => {
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ export interface DicTaskBox {
|
|||||||
|
|
||||||
export const dicTaskBox = new Map<number, Map<number, DicTaskBox>>();
|
export const dicTaskBox = new Map<number, Map<number, DicTaskBox>>();
|
||||||
export function loadTaskBox() {
|
export function loadTaskBox() {
|
||||||
|
dicTaskBox.clear();
|
||||||
|
|
||||||
let arr1 = readFileAndParse(FILENAME.DIC_TASK_BOX);
|
let arr1 = readFileAndParse(FILENAME.DIC_TASK_BOX);
|
||||||
arr1.forEach(o => {
|
arr1.forEach(o => {
|
||||||
if(!dicTaskBox.has(TASK_FUN_TYPE.DAILY)) {
|
if(!dicTaskBox.has(TASK_FUN_TYPE.DAILY)) {
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ export interface DicTeraph {
|
|||||||
}
|
}
|
||||||
export const dicTeraph = new Map<string, DicTeraph>();
|
export const dicTeraph = new Map<string, DicTeraph>();
|
||||||
export function loadTeraph() {
|
export function loadTeraph() {
|
||||||
|
dicTeraph.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_TERAPH);
|
let arr = readFileAndParse(FILENAME.DIC_TERAPH);
|
||||||
|
|
||||||
type KeysEnum<T> = { [P in keyof Required<T>]: true };
|
type KeysEnum<T> = { [P in keyof Required<T>]: true };
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ const DicTitleKeys: KeysEnum<DicTitle> = {
|
|||||||
}
|
}
|
||||||
export const dicTitle = new Map<number, DicTitle>();
|
export const dicTitle = new Map<number, DicTitle>();
|
||||||
export function loadTitle() {
|
export function loadTitle() {
|
||||||
|
dicTitle.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_TITLE);
|
let arr = readFileAndParse(FILENAME.DIC_TITLE);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ export interface DicTower {
|
|||||||
|
|
||||||
export const dicTower = new Map<number, DicTower>();
|
export const dicTower = new Map<number, DicTower>();
|
||||||
export function loadTower() {
|
export function loadTower() {
|
||||||
|
dicTower.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_TOWER);
|
let arr = readFileAndParse(FILENAME.DIC_TOWER);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ export interface DicTowerTask {
|
|||||||
|
|
||||||
export const dicTowerTask = new Map<number, DicTowerTask>();
|
export const dicTowerTask = new Map<number, DicTowerTask>();
|
||||||
export function loadTowerTask() {
|
export function loadTowerTask() {
|
||||||
|
dicTowerTask.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_TOWER_TASK);
|
let arr = readFileAndParse(FILENAME.DIC_TOWER_TASK);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ const DicTrainSoloRewardKeys: KeysEnum<DicTrainSoloReward> = {
|
|||||||
|
|
||||||
export const dicTrainSoloReward = new Map<number, DicTrainSoloReward>();
|
export const dicTrainSoloReward = new Map<number, DicTrainSoloReward>();
|
||||||
export function loadTrainSoloReward() {
|
export function loadTrainSoloReward() {
|
||||||
|
dicTrainSoloReward.clear();
|
||||||
|
|
||||||
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_SOLO_REWARD);
|
let arr = readFileAndParse(FILENAME.DIC_ARMY_TRAIN_SOLO_REWARD);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export const dicWar = new Map<number, DicWar>();
|
|||||||
export const dicWarPvp = new Array<DicWar>();
|
export const dicWarPvp = new Array<DicWar>();
|
||||||
export const dicDailyWarByType = new Map<number, DicWar[]>();
|
export const dicDailyWarByType = new Map<number, DicWar[]>();
|
||||||
export function loadWar() {
|
export function loadWar() {
|
||||||
|
dicWar.clear();
|
||||||
dicDailyWarByType.clear();
|
dicDailyWarByType.clear();
|
||||||
dicWarPvp.splice(0, dicWarPvp.length);
|
dicWarPvp.splice(0, dicWarPvp.length);
|
||||||
for(let filename of WAR_RELATE_TABLES) {
|
for(let filename of WAR_RELATE_TABLES) {
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ export interface DicWarJson {
|
|||||||
|
|
||||||
export const dicWarJson = new Map<number, Array<DicWarJson>>();
|
export const dicWarJson = new Map<number, Array<DicWarJson>>();
|
||||||
export function loadWarJson() {
|
export function loadWarJson() {
|
||||||
|
dicWarJson.clear();
|
||||||
readWarJsonFileAndParse().forEach(arr => {
|
readWarJsonFileAndParse().forEach(arr => {
|
||||||
|
|
||||||
let warjson = new Array<DicWarJson>();
|
let warjson = new Array<DicWarJson>();
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export interface DicXunbao {
|
|||||||
|
|
||||||
export const dicXunbao = new Map<number, DicXunbao>();
|
export const dicXunbao = new Map<number, DicXunbao>();
|
||||||
export function loadXunbao() {
|
export function loadXunbao() {
|
||||||
|
dicXunbao.clear();
|
||||||
let arr = readFileAndParse(FILENAME.DIC_XUNBAO);
|
let arr = readFileAndParse(FILENAME.DIC_XUNBAO);
|
||||||
|
|
||||||
arr.forEach(o => {
|
arr.forEach(o => {
|
||||||
|
|||||||
Reference in New Issue
Block a user