远征:修改机器人模板计算
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user