远征:修改机器人模板计算

This commit is contained in:
luying
2021-09-10 15:45:01 +08:00
parent dd70efddbe
commit a6525ef254
11 changed files with 78 additions and 13 deletions
@@ -196,11 +196,12 @@ export async function matchRobots(scale: number, myCe: number, robotCe: number,
enemyObj.enemyId = warJsonIndex + '';
let allCe = 0;
let dicExpeditionSubAttr = gameData.expeditionSubAttr.get(lv);
for(let json of dicWarJson) {
if(json.relation == 2) {
const { attribute } = json;
let { attribute: newAttribute, ce } = getRobotAttribute(attribute, myCe, robotCe, scale);
let { attribute: newAttribute, ce } = getRobotAttribute(attribute, dicExpeditionSubAttr.attribute, dicExpeditionSubAttr.lv, myCe, robotCe, scale);
enemyObj.enemies.push({...json, attribute: newAttribute, lv, ce});
allCe += ce;
}