修订法强计算

This commit is contained in:
yuexin 2020-12-23 11:34:14 +08:00
parent e0bdb5eacf
commit 06bede8421
3 changed files with 9 additions and 10 deletions

View File

@ -85,7 +85,7 @@ export class PetHandler {
param.edd_cnt, this._baseap); param.edd_cnt, this._baseap);
} }
this._ceilBaseAP(); // this._ceilBaseAP();
this._skills.length = 0; this._skills.length = 0;
@ -102,8 +102,8 @@ export class PetHandler {
this.born(param); this.born(param);
}; };
private _ceilBaseAP(){ private _I(v: number): number{
this._baseap = Math.ceil(this._baseap); return Math.ceil(v);
}; };
private _isEnhancePower(enid: number){ private _isEnhancePower(enid: number){
@ -251,7 +251,7 @@ export class PetHandler {
this.die(); this.die();
} }
}else{ }else{
this._ceilBaseAP(); // this._ceilBaseAP();
this.dataChanged(); this.dataChanged();
} }
@ -484,8 +484,8 @@ export class PetHandler {
let obj = new PetInfo(); let obj = new PetInfo();
obj.id = this._id, obj.id = this._id,
obj.isHero = this._isHero, obj.isHero = this._isHero,
obj.ap = this._baseap, obj.ap = this._I(this._baseap),
obj.extAp = this.getEffHaloV(), obj.extAp = this._I(this.getEffHaloV()),
obj.pos = this._idx, obj.pos = this._idx,
obj.player = this._owner.getId(), obj.player = this._owner.getId(),
obj.harmReduce = this._exredhurt, obj.harmReduce = this._exredhurt,

View File

@ -267,8 +267,8 @@ export class PlayerHandler {
return this._self.addEM(value); return this._self.addEM(value);
}; };
public getEMRatio(): number{ public getEM(): number{
return this._totalem/100; return this._totalem;
}; };
public onEMChanged(value: number){ public onEMChanged(value: number){

View File

@ -501,8 +501,7 @@ export class Skill {
if(this._type != SkillType.MAGIC){ if(this._type != SkillType.MAGIC){
return effvalue; return effvalue;
} }
let ev = effvalue; let ev = this._owner.getEM();
ev *= this._owner.getEMRatio();
return effvalue + ev; return effvalue + ev;
}; };