导表+时间处理

This commit is contained in:
yuexin 2021-02-24 18:13:17 +08:00
parent ff5cce11da
commit 373eb688fa
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -512,12 +512,12 @@ export class BattleHandler {
let nt = this._sktime * 1000;
if(this._cachePets.length > 0){
if(nt > 0){
nt += 100; // 延时100ms处理随从
this._room.clock.setTimeout(()=>{
this.onUpdatePets(this._cachePets, null);
this.checkPets(this._cachePets);
this._cachePets.length = 0;
}, nt);
nt += 100;
}else{
this.onUpdatePets(this._cachePets, null);
this.checkPets(this._cachePets);
@ -526,7 +526,7 @@ export class BattleHandler {
}
this._flowcount = res;
return nt;
return nt + 100; // 延时100ms开始下个步骤
}
this._flowcount = res;