fix bug 远征显示下一关等
This commit is contained in:
@@ -256,14 +256,19 @@ export default class Actor {
|
||||
return baseAbility
|
||||
}
|
||||
|
||||
calculateCE() {
|
||||
// 武将
|
||||
getAttributeJson() {
|
||||
let json = {hp: 0, atk: 0, matk: 0, def: 0, mdef: 0, agi: 0, speed: 0, luk: 0, hit: 0, cri: 0, flee: 0, antCri: 0, damageIncrease: 0, damageDecrease: 0, defIngnore: 0, bloodSuck: 0};
|
||||
|
||||
for(let i = ABI_TYPE.ABI_HP;i < ABI_TYPE.ABI_MAX;i++){
|
||||
let field = WAR_JSON_ATTRIBUTE_TYPE[i];
|
||||
json[field] = this.getRealAbility(i);
|
||||
}
|
||||
return json
|
||||
}
|
||||
|
||||
calculateCE() {
|
||||
// 武将
|
||||
let json = this.getAttributeJson();
|
||||
let ce = this.calculateCEByExpression(json);
|
||||
|
||||
// 装备
|
||||
|
||||
Reference in New Issue
Block a user