导表+时间处理
This commit is contained in:
parent
ff5cce11da
commit
373eb688fa
File diff suppressed because one or more lines are too long
@ -512,12 +512,12 @@ export class BattleHandler {
|
|||||||
let nt = this._sktime * 1000;
|
let nt = this._sktime * 1000;
|
||||||
if(this._cachePets.length > 0){
|
if(this._cachePets.length > 0){
|
||||||
if(nt > 0){
|
if(nt > 0){
|
||||||
|
nt += 100; // 延时100ms处理随从
|
||||||
this._room.clock.setTimeout(()=>{
|
this._room.clock.setTimeout(()=>{
|
||||||
this.onUpdatePets(this._cachePets, null);
|
this.onUpdatePets(this._cachePets, null);
|
||||||
this.checkPets(this._cachePets);
|
this.checkPets(this._cachePets);
|
||||||
this._cachePets.length = 0;
|
this._cachePets.length = 0;
|
||||||
}, nt);
|
}, nt);
|
||||||
nt += 100;
|
|
||||||
}else{
|
}else{
|
||||||
this.onUpdatePets(this._cachePets, null);
|
this.onUpdatePets(this._cachePets, null);
|
||||||
this.checkPets(this._cachePets);
|
this.checkPets(this._cachePets);
|
||||||
@ -526,7 +526,7 @@ export class BattleHandler {
|
|||||||
}
|
}
|
||||||
this._flowcount = res;
|
this._flowcount = res;
|
||||||
|
|
||||||
return nt;
|
return nt + 100; // 延时100ms开始下个步骤
|
||||||
}
|
}
|
||||||
|
|
||||||
this._flowcount = res;
|
this._flowcount = res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user