数值不取整
This commit is contained in:
parent
3d9c6b6c15
commit
89315451a0
@ -287,7 +287,8 @@ let CfgMan = {
|
||||
if(!maxv){
|
||||
return minv;
|
||||
}
|
||||
return Math.round(Math.random() * maxv + minv);
|
||||
// return Math.round(Math.random() * maxv + minv);
|
||||
return Math.random() * maxv + minv;
|
||||
},
|
||||
|
||||
hasSummonPetSkill(skillids: number[]){
|
||||
|
@ -118,7 +118,8 @@ export class PetHandler {
|
||||
};
|
||||
|
||||
private _I(v: number): number{
|
||||
return Math.ceil(v);
|
||||
return v;
|
||||
// return Math.ceil(v);
|
||||
};
|
||||
|
||||
private _isEnhancePower(enid: number){
|
||||
@ -447,12 +448,12 @@ export class PetHandler {
|
||||
|
||||
public clear(onlyclear: boolean = false){
|
||||
if(this._halos.length > 0){
|
||||
this._halos.length = 0;
|
||||
this.clearEffHalos();
|
||||
if(!onlyclear){
|
||||
this._owner.onHaloRemove(this);
|
||||
}
|
||||
}
|
||||
this._halos.length = 0;
|
||||
this._waitskills.length = 0;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user