远征:模板计算

This commit is contained in:
luying
2021-09-13 15:57:02 +08:00
parent 217f9b6368
commit 63d28d1233
3 changed files with 14 additions and 8 deletions
@@ -199,9 +199,9 @@ export async function matchRobots(scale: number, myCe: number, robotCe: number,
let dicExpeditionSubAttr = gameData.expeditionSubAttr.get(lv);
for(let json of dicWarJson) {
if(json.relation == 2) {
const { attribute } = json;
const { attribute, enemyCount } = json;
let { attribute: newAttribute, ce } = getRobotAttribute(attribute, dicExpeditionSubAttr.attribute, dicExpeditionSubAttr.lv, myCe, robotCe, scale);
let { attribute: newAttribute, ce } = getRobotAttribute(attribute, enemyCount, dicExpeditionSubAttr.attribute, dicExpeditionSubAttr.lv, myCe, robotCe, scale);
enemyObj.enemies.push({...json, attribute: newAttribute, lv, ce});
allCe += ce;
}