🐞 fix(战力): pvp等机器人数据的战力生成修改为新算法

This commit is contained in:
luying
2023-02-17 14:26:31 +08:00
parent b0e0c83fcd
commit 52701f7e11
8 changed files with 64 additions and 29 deletions
+1 -1
View File
@@ -524,7 +524,7 @@ export async function getHeroesAttributes(roleId: string) {
let cal = new AttributeCal();
let heroAttr = heroAttrs.find(cur => cur.hid == hid);
if(heroAttr) cal.setLv(heroAttr.lv);
cal.setByWarJson(attrs);
cal.setByWarJson(hid, attrs);
attrByHid.set(hid, cal);
}
return attrByHid;