修订法强计算

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

View File

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

View File

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