pvp:机器人次级属性
This commit is contained in:
@@ -377,6 +377,8 @@ export function getRobotAttribute(hid: number, posRatio: number, score: number)
|
||||
let newAttribute = new AttributeCal();
|
||||
newAttribute.setLv(difficultRatio.enemyLv);
|
||||
newAttribute.setByMap(dicHero.baseAbilityArr, difficultRatio.value / 10000 * posRatio);
|
||||
let subAttr = gameData.towerPvpSubAttr.get(difficultRatio.secondAttrLevel);
|
||||
if(subAttr) newAttribute.setByWarJson(subAttr.secondAtr);
|
||||
let attrArr = newAttribute.getAttributesToString();
|
||||
let newCe = newAttribute.calCe();
|
||||
return { attribute: attrArr, ce: newCe, lv: difficultRatio.enemyLv };
|
||||
|
||||
Reference in New Issue
Block a user