From 16e8c85c5fd7038f91b385d6819ec286ed90bf47 Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 27 Mar 2017 10:41:24 +0800 Subject: [PATCH] g --- game/game.js | 2 +- mode/guozhan.js | 42 +++++++++++++++++++++++++++++------------- mode/identity.js | 3 +++ 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/game/game.js b/game/game.js index b312a09ca..a9bcc1c56 100644 --- a/game/game.js +++ b/game/game.js @@ -7158,8 +7158,8 @@ var loop=function(){ if(onfree.length){ (onfree.shift())(); + setTimeout(loop,100); } - setTimeout(loop,200); }; setTimeout(loop,500); } diff --git a/mode/guozhan.js b/mode/guozhan.js index c8abb7a60..c1c603d78 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -2358,9 +2358,11 @@ mode.guozhan={ } if(_status.auto){ event.ai(game.me,list); + lib.init.onfree(); } else if(chosen.length){ game.me.init(chosen[0],chosen[1],false); + lib.init.onfree(); } else{ var dialog=ui.create.dialog('选择角色','hidden',[list,'character']); @@ -2369,7 +2371,7 @@ mode.guozhan={ addSetting(dialog); } } - var next=game.me.chooseButton(dialog,true,2); + var next=game.me.chooseButton(dialog,true,2).set('onfree',true); next.filterButton=function(button){ if(ui.dialog.buttons.length<=10){ for(var i=0;i