修订法强计算
This commit is contained in:
parent
e0bdb5eacf
commit
06bede8421
@ -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,
|
||||
|
@ -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){
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user