pvp:机器人次级属性

This commit is contained in:
luying
2022-04-21 19:38:26 +08:00
parent 8b02e7f5c1
commit 1e5bffc36c
8 changed files with 3938 additions and 65 deletions
+2
View File
@@ -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 };