This commit is contained in:
luying
2020-12-29 21:20:48 +08:00
parent c307556ca5
commit b5f2f466c8

View File

@@ -111,7 +111,7 @@ export async function matchRobots(scale: number, myCe: number, robotCe: number,
}
let ce = 0;
for(let attrName in attribute) {
ce += attribute[attrName] * getAttrCeRatio(attrName);
ce += attribute[attrName] * getAttrCeRatio(attrName)||0;
}
enemyObj.enemies.push({...enemy, attribute, lv});
allCe += ce;