🐞 fix(gvg): 修复农田特殊种子加成逻辑

This commit is contained in:
luying
2023-02-07 18:05:21 +08:00
parent eb5808dfb1
commit f21fd2dfa8
7 changed files with 78 additions and 75 deletions

View File

@@ -317,7 +317,7 @@ export const gameData = {
gvgResourceBaseByType: dicGVGResourceBaseByType,
gvgResourceBaseByLv: dicGVGResourceBaseByLv,
gvgFieldAddType: new Map<number, number>(),
gvgSpFieldRatio: { min: 0, max: 0},
gvgPlayerFieldAddType: new Map<number, number>(),
gvgContributeBox: dicGVGContributeBox,
gvgArea: dicGVGArea,
gvgCity: dicGVGCity,
@@ -1151,12 +1151,10 @@ function parseGVGFieldAdd() {
for(let [type, ratio] of arr) {
gameData.gvgFieldAddType.set(parseInt(type), parseFloat(ratio));
}
}
function parseGVGSpFieldRatio() {
let arr = param.GVG.GVG_SP_FIELD_RATIO.split('&');
gameData.gvgSpFieldRatio.min = parseFloat(arr[0]);
gameData.gvgSpFieldRatio.max = parseFloat(arr[0]);
let arr2 = decodeArrayListStr(param.GVG.GVG_SP_FIELD_RATIO);
for(let [type, ratio] of arr2) {
gameData.gvgPlayerFieldAddType.set(parseInt(type), parseFloat(ratio));
}
}
export function getGVGTasksByType(taskType: number) {
@@ -1220,7 +1218,6 @@ function parseDicParam() {
parseComBattleRewardTime();
parseGVGActive();
parseGVGFieldAdd();
parseGVGSpFieldRatio();
parseGVGVestigeCnt();
}