clear:删除一些没有在使用的表
This commit is contained in:
@@ -244,7 +244,16 @@ module.exports = {
|
||||
],
|
||||
'battle': [
|
||||
{ 'id': 'battle-server-2', 'host': '172.26.145.171', 'port': 9062 },
|
||||
]
|
||||
],
|
||||
'role': [
|
||||
{ 'id': 'role-server-4', 'host': '172.26.145.171', 'port': 6063 },
|
||||
],
|
||||
'chat': [
|
||||
{ 'id': 'chat-server-2', 'host': '172.26.145.171', 'port': 6069 },
|
||||
],
|
||||
'guild': [
|
||||
{ 'id': 'guild-server-3', 'host': '172.26.145.171', 'port': 6071 },
|
||||
],
|
||||
},
|
||||
'sq1': {
|
||||
'connector': [
|
||||
|
||||
@@ -407,13 +407,9 @@ export const FRIEND_DROP_MAX = {
|
||||
|
||||
|
||||
export const FILENAME = {
|
||||
DIC_BLUEPRT_COMPOSE: 'dic_blueprt_compose',
|
||||
DIC_BLUEPRT_POSSIBILITY: 'dic_blueprt_possibility',
|
||||
DIC_EXPEDITION: 'dic_expedition',
|
||||
DIC_EXPEDITION_POINT: 'dic_expedition_point',
|
||||
DIC_FUNC_SWITCH: 'dic_func_switch',
|
||||
DIC_GOODS: 'dic_goods',
|
||||
DIC_CHAREXP: 'dic_zyz_charexp',
|
||||
DIC_DAILY: 'dic_zyz_daily',
|
||||
DIC_EVENT: 'dic_zyz_event',
|
||||
DIC_FASHIONS: 'dic_zyz_fashions',
|
||||
@@ -436,21 +432,15 @@ export const FILENAME = {
|
||||
DIC_HERO_STAR: 'dic_zyz_hero_star',
|
||||
DIC_HERO_WAKE: 'dic_zyz_hero_wake',
|
||||
DIC_HERO_TALENT: 'dic_zyz_hero_talent',
|
||||
DIC_HERO_SKILL: 'dic_zyz_heroskill',
|
||||
DIC_JOB: 'dic_zyz_job',
|
||||
DIC_KING_EXP: 'dic_zyz_kingexp',
|
||||
DIC_CHAR_EXP: 'dic_zyz_charexp',
|
||||
DIC_SE: 'dic_zyz_se',
|
||||
DIC_TOWER_TASK: 'dic_zyz_search',
|
||||
DIC_TOWER: 'dic_zyz_tower',
|
||||
DIC_XUNBAO: 'dic_zyz_xunbao',
|
||||
DIC_QUESTION: 'Questions',
|
||||
DIC_RANDOM_EFFECT_POOL: 'dic_zyz_randomEffectPool',
|
||||
DIC_RANDOM_EFFECT_POOL_PLAN: 'dic_zyz_randomEffectPoolPlan',
|
||||
DIC_STRENGTHEN_COST: 'dic_zyz_enhancementCost',
|
||||
DIC_REFINE: 'dic_zyz_jinglian',
|
||||
DIC_HERO_EQUIP: 'dic_zyz_heroEquip',
|
||||
DIC_SUIT: 'dic_zyz_suit',
|
||||
DIC_TITLE: 'dic_zyz_title',
|
||||
DIC_TERAPH: 'dic_zyz_teraph',
|
||||
DIC_SCHOOL: 'dic_zyz_school',
|
||||
@@ -473,7 +463,6 @@ export const FILENAME = {
|
||||
DIC_GUILD_STORE_BASE: 'dic_army_storeBase',
|
||||
DIC_GUILD_POSITION: 'dic_army_position',
|
||||
DIC_ACTIVE_DAY_REWARD: 'dic_army_activeDayReward',
|
||||
DIC_ACTIVE_WEEK_REWARD: 'dic_army_activeWeekReward',
|
||||
DIC_MAIL: 'dic_email_content',
|
||||
DIC_ARMY_TRAIN_JU_DIAN: 'dic_army_trainJuDian',
|
||||
DIC_ARMY_TRAIN_SOLO_REWARD: 'dic_army_trainSoloReward',
|
||||
@@ -489,7 +478,6 @@ export const FILENAME = {
|
||||
DIC_GUILD_AUCTION: 'dic_zyz_guildAuction',
|
||||
DIC_CITY_ACTIVITY: 'dic_zyz_cityActivity',
|
||||
DIC_CHAT_ACCUSE: 'dic_zyz_chat_report',
|
||||
DIC_CHAT_SYSTEM: 'dic_zyz_chat_system',
|
||||
DIC_CITY_ACTIVITY_REWARD: 'dic_zyz_cityActivityReward',
|
||||
DIC_RACE_ACTIVITY: 'dic_zyz_raceActivity',
|
||||
DIC_SHOP: 'dic_zyz_shop',
|
||||
@@ -512,15 +500,12 @@ export const FILENAME = {
|
||||
DIC_GK_SZTM: 'dic_zyz_gk_activity_sztm',
|
||||
DIC_GK_MJSD: 'dic_zyz_gk_activity_mjsd',
|
||||
DIC_SERVER_NAME: 'dic_zyz_serverName',
|
||||
DIC_SERVER_GROUP_NAME: 'dic_zyz_serverGropName',
|
||||
DIC_GK_FES: 'dic_zyz_gk_activity_festival',
|
||||
DIC_AP: 'dic_zyz_ap',
|
||||
DIC_AP_BUY_COST: 'dic_zyz_daliyAP',
|
||||
DIC_GK_NEWHERO: 'dic_zyz_gk_newhero',
|
||||
DIC_EXP_RATIO: 'dic_zyz_mainTaskExp',
|
||||
DIC_GK_PROBATION: 'dic_zyz_gk_probation',
|
||||
DIC_QUENCH_QUALITY: 'dic_zyz_quench_quality',
|
||||
DIC_QUENCH_CONSUME: 'dic_zyz_quench_consume',
|
||||
DIC_HOLIDAY: 'dic_holiday',
|
||||
DIC_EXPEDITION_SUB_ATTR: 'dic_expedition_subattr',
|
||||
DIC_AUCTION_BASIC_POOL: 'dic_zyz_auction_basicPool',
|
||||
|
||||
@@ -4,7 +4,6 @@ import { dicDaily, loadDaily } from "./dictionary/DicDaily";
|
||||
import { dicEvent, dicEventList, loadEvent } from "./dictionary/DicEvent";
|
||||
import { dicExpedition, DicExpedition, loadExpedition } from "./dictionary/DicExpedition";
|
||||
import { dicExpeditionPoint, loadExpeditionPoint } from "./dictionary/DicExpeditionPoint";
|
||||
import { dicHeroSkill, loadHeroSkill } from "./dictionary/DicHeroSkill";
|
||||
import { dicJob, jobClassAndgrades, jobClassMaxGrades, loadJob, talentPointOfJob } from "./dictionary/DicJob";
|
||||
import { dicKingExp, maxPlayerLv, loadKingExp } from "./dictionary/DicKingExp";
|
||||
import { dicCharExp, loadCharExp } from "./dictionary/DicCharExp";
|
||||
@@ -14,7 +13,6 @@ import { dicTower, loadTower } from "./dictionary/DicTower";
|
||||
import { dicTowerTask, loadTowerTask } from "./dictionary/DicTowerTask";
|
||||
import { dicWar, dicWarPvp, dicDailyWarByType, loadWar, dicHeroIdByWar } from "./dictionary/DicWar";
|
||||
import { dicWarJson, loadWarJson } from "./dictionary/DicWarJson";
|
||||
import { dicXunbao, loadXunbao } from "./dictionary/DicXunbao";
|
||||
import { AUCTION_TIME } from "../consts";
|
||||
import { dicFashions, dicFashionsByHeroId, loadFashions } from "./dictionary/DicFashions";
|
||||
import { friendShips, friendShipHidAandIds, loadFriendShip } from "./dictionary/DicFriendShip";
|
||||
@@ -118,7 +116,6 @@ export const gameData = {
|
||||
goods: dicGoods,
|
||||
hero: dicHero,
|
||||
heroQualityUp: dicHeroQualityUp,
|
||||
heroSkill: dicHeroSkill,
|
||||
heroStar: dicHeroStar,
|
||||
heroWake: dicHeroWake,
|
||||
job: dicJob,
|
||||
@@ -135,7 +132,6 @@ export const gameData = {
|
||||
war: dicWar,
|
||||
warJson: dicWarJson,
|
||||
dailyWarByType: dicDailyWarByType,
|
||||
xunbao: dicXunbao,
|
||||
btlBossHpSum: new Map<number, number>(),
|
||||
btlBossHp: new Map<number, Array<{ dataId: number, hp: number, actorId: number }>>(),
|
||||
fashion: dicFashions,
|
||||
@@ -974,7 +970,6 @@ function loadDatas() {
|
||||
loadEvent();
|
||||
loadExpedition();
|
||||
loadExpeditionPoint();
|
||||
loadHeroSkill();
|
||||
loadJob();
|
||||
loadKingExp();
|
||||
loadCharExp();
|
||||
@@ -985,7 +980,6 @@ function loadDatas() {
|
||||
loadTowerGift();
|
||||
loadWar();
|
||||
loadWarJson();
|
||||
loadXunbao();
|
||||
loadFashions();
|
||||
loadFriendShip();
|
||||
loadFriendShipLevel();
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
// 武将技能表
|
||||
import {decodeArrayListStr, readFileAndParse} from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicHeroSkill {
|
||||
|
||||
// 技能id
|
||||
readonly skillid: number;
|
||||
// 技能名
|
||||
readonly name: string;
|
||||
// 星级解锁
|
||||
readonly starSeidArr: Array<{star: number, value: number, type: number}>;
|
||||
// 觉醒解锁
|
||||
readonly colorStarSeidArr: Array<{star: number, value: number, type: number}>;
|
||||
|
||||
}
|
||||
|
||||
export const dicHeroSkill = new Map<number, DicHeroSkill>();
|
||||
export function loadHeroSkill() {
|
||||
dicHeroSkill.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_HERO_SKILL);
|
||||
arr.forEach(o => {
|
||||
o.starSeidArr = parseSeid(o.starSeid);
|
||||
o.colorStarSeidArr = parseSeid(o.colorStarSeid);
|
||||
dicHeroSkill.set(o.skillid, o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
|
||||
function parseSeid(str: string) {
|
||||
let arr = new Array<{star: number, value: number, type: number}>();
|
||||
if(!str) return arr;
|
||||
let decodeArr = decodeArrayListStr(str);
|
||||
for(let [star, value, type] of decodeArr) {
|
||||
if(isNaN(parseInt(star)) || isNaN(parseInt(value)) || isNaN(parseInt(type))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
arr.push({ star: parseInt(star), value: parseInt(value), type: parseInt(type)});
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
// 寻宝表
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicXunbao {
|
||||
|
||||
// 品质
|
||||
readonly quality: number;
|
||||
// 品质名
|
||||
readonly name: number;
|
||||
// 协助次数
|
||||
readonly assistanceTime: number;
|
||||
// ! 已删除。最低协助等级
|
||||
// readonly assistanceLevel: number;
|
||||
}
|
||||
|
||||
export const dicXunbao = new Map<number, DicXunbao>();
|
||||
export function loadXunbao() {
|
||||
dicXunbao.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_XUNBAO);
|
||||
|
||||
arr.forEach(o => {
|
||||
dicXunbao.set(o.quality, o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user