关卡:主公经验和等级挂钩
This commit is contained in:
@@ -460,7 +460,7 @@ export const FILENAME = {
|
||||
DIC_AP: 'dic_zyz_ap',
|
||||
DIC_AP_BUY_COST: 'dic_zyz_daliyAP',
|
||||
DIC_GK_NEWHERO: 'dic_zyz_gk_newhero',
|
||||
DIC_TASK_EXP: 'dic_zyz_mainTaskExp',
|
||||
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',
|
||||
@@ -709,4 +709,10 @@ export enum RECEIVE_MAIL_TYPE {
|
||||
export enum ROBOT_SYS_TYPE {
|
||||
COM_BTL = 1,
|
||||
PVP = 2
|
||||
}
|
||||
|
||||
// 武将等级和经验比类型
|
||||
export enum KING_EXP_RATIO_TYPE {
|
||||
TASK = 1,
|
||||
BATTLE = 2,
|
||||
}
|
||||
@@ -87,7 +87,7 @@ import { dicTaskTypeDesc, loadTaskType } from './dictionary/DicTaskType';
|
||||
import { dicServerName, dicServerGroupName, loadServerName } from "./dictionary/DicServerName";
|
||||
import { dicAp, loadAp, dicApMaxLevel } from './dictionary/DicAp';
|
||||
import { dicApBuy, dicApMaxBuyTimes, loadApBuy } from "./dictionary/DicApBuy";
|
||||
import { dicTaskExp, loadTskExp} from './dictionary/DicTaskExp';
|
||||
import { dicKingExpRatio, loadKingExpRatio } from './dictionary/DicKingExpRatio';
|
||||
import { dicQuenchByQuality, dicQuenchRangeByQuality, dicQuenchRangeByQualityAndGrade, loadQuenchQuality } from './dictionary/DicQuenchQuality';
|
||||
import { dicQuenchConsume, loadQuenchConsume } from './dictionary/DicQuenchConsume';
|
||||
import { dicHoliday, loadHoliday } from './dictionary/DicHoliday';
|
||||
@@ -219,7 +219,7 @@ export const gameData = {
|
||||
apMaxLevel: dicApMaxLevel,
|
||||
apBuy: dicApBuy,
|
||||
apMaxBuyTimes: dicApMaxBuyTimes,
|
||||
taskExp: dicTaskExp,
|
||||
kingExpRaio: dicKingExpRatio,
|
||||
quenchRangeByQuality: dicQuenchRangeByQuality,
|
||||
quenchRangeByQualityAndGrade: dicQuenchRangeByQualityAndGrade,
|
||||
quenchConsume: dicQuenchConsume,
|
||||
@@ -864,7 +864,7 @@ function loadDatas() {
|
||||
loadServerName();
|
||||
loadAp();
|
||||
loadApBuy();
|
||||
loadTskExp();
|
||||
loadKingExpRatio();
|
||||
loadQuenchQuality();
|
||||
loadQuenchConsume();
|
||||
loadEquipAttributeRatio();
|
||||
|
||||
25
shared/pubUtils/dictionary/DicKingExpRatio.ts
Normal file
25
shared/pubUtils/dictionary/DicKingExpRatio.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// 任务奖励主公经验
|
||||
import { readFileAndParse, } from '../util'
|
||||
import { FILENAME, KING_EXP_RATIO_TYPE, } from '../../consts'
|
||||
|
||||
export interface DicKingExpRatio {
|
||||
// 主公等级
|
||||
readonly lv: number;
|
||||
// 主公经验
|
||||
readonly exp: number;
|
||||
// 关卡获得的武将经验
|
||||
readonly expGk: number;
|
||||
}
|
||||
|
||||
export const dicKingExpRatio = new Map<number, Map<KING_EXP_RATIO_TYPE, number>>();
|
||||
export function loadKingExpRatio() {
|
||||
|
||||
let arr1 = readFileAndParse(FILENAME.DIC_EXP_RATIO);
|
||||
arr1.forEach(o => {
|
||||
let map = new Map<KING_EXP_RATIO_TYPE, number>();
|
||||
map.set(KING_EXP_RATIO_TYPE.TASK, o.exp);
|
||||
map.set(KING_EXP_RATIO_TYPE.BATTLE, o.expGk);
|
||||
dicKingExpRatio.set(o.lv, map);
|
||||
});
|
||||
arr1 = undefined;
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
// 任务奖励主公经验
|
||||
import { readFileAndParse, } from '../util'
|
||||
import { FILENAME, } from '../../consts'
|
||||
|
||||
export interface DicTaskExp {
|
||||
// 主公等级
|
||||
readonly lv: number;
|
||||
// 主公经验
|
||||
readonly exp: number;
|
||||
}
|
||||
|
||||
export const dicTaskExp = new Map<number, number>();
|
||||
export function loadTskExp() {
|
||||
|
||||
let arr1 = readFileAndParse(FILENAME.DIC_TASK_EXP);
|
||||
arr1.forEach(o => {
|
||||
dicTaskExp.set(o.lv, o.exp);
|
||||
});
|
||||
arr1 = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user