mode.boss={ game:{ load:function(){ var next=game.createEvent('load',false); next.content=function(){ "step 0" game.import('identity'); "step 1" delete lib.config.current_mode.change_identity; ui.create.arena(); ui.auto.hide(); ui.create.cards(); game.finishCards(); game.delay(); "step 2" game.prepareGame(); "step 3" var player=_status.first||game.zhu; event.trigger('gameStart'); game.gameDraw(player); game.bossPhaseLoop(player); } }, bossPhaseLoop:function(){ var next=game.createEvent('phaseLoop'); next.player=game.zhu; next.content=function(){ "step 0" if(player.classList.contains('chongzheng')){ player.classList.remove('chongzheng'); } else{ player.phase(); } "step 1" if(_status.level.chongzheng!=undefined&&event.player==game.zhu){ for(var i=0;i0?player.node.handcards1:player.node.handcards2; card.fix(); var j=0; if(lib.config.strict_sort){ for(j=0;jlib.config.sort_card(position.childNodes[j])) break; } } } card.animate('start'); position.insertBefore(card,position.childNodes[j]); } game.dead[i].update(); } else{ game.dead[i].revive(); game.dead[i].classList.add('chongzheng'); game.dead[i].hp=game.dead[i].maxHp; if(game.dead[i].hp<4){ game.dead[i].draw(3); } else{ game.dead[i].draw(2); } i--; } } } if(_status.loopType==1){ if(event.player==game.zhu){ if(_status.next==undefined) _status.next=game.zhu.next; event.player=_status.next; } else{ if(player.next==game.zhu){ _status.next=game.zhu.next; } else{ _status.next=player.next; } event.player=game.zhu; } } else{ var players,i; if(game.players.contains(event.player.next)==false){ players=get.players(lib.sort.position); if(players[players.length-1].position=event.player.position){ event.player=game.players[i];break; } } } } else{ event.player=event.player.next; } } event.goto(0); } }, prepareGame:function(){ var next=game.createEvent('prepareGame',false); next.showConfig=true; next.ai=function(player,list){ player.init(list[0]); }; next.content=function(){ "step 0" var i; var dialog=ui.create.dialog(); for(i=0;i