From d28e352d93c631220ddb5f07f324813d533decd8 Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 15 Apr 2017 06:14:25 +0800 Subject: [PATCH] q --- game/game.js | 23 +++++---- mode/boss.js | 127 +++++++++++++++++++++++++++++++++++++++++++++---- mode/chess.js | 1 + mode/versus.js | 1 + 4 files changed, 135 insertions(+), 17 deletions(-) diff --git a/game/game.js b/game/game.js index 7c0a385da..169dc71ff 100644 --- a/game/game.js +++ b/game/game.js @@ -22214,12 +22214,7 @@ }, changeSeat:function(player,info){ if(player){ - player.style.transition='all 0s'; - ui.refresh(player); - player.dataset.position=info; - setTimeout(function(){ - player.style.transition=''; - },100); + game.changeSeat(player,info); game.playerMap={}; var players=game.players.concat(game.dead); for(var i=0;i0){ - td.innerHTML='剩余'+get.cnNumber(game.bossinfo.chongzheng-game.dead[i].storage.boss_chongzheng)+'回合'; + td.innerHTML='剩余'+(game.bossinfo.chongzheng-game.dead[i].storage.boss_chongzheng)+'回合'; } else{ td.innerHTML='无法重整' @@ -381,7 +382,9 @@ mode.boss={ if(game.bossinfo.checkResult&&game.bossinfo.checkResult(this)===false){ return; } - if(this==game.boss||game.players.length==1){ + if(this==game.boss||!game.hasPlayer(function(current){ + return !current.side; + })){ game.checkResult(); } }, @@ -396,8 +399,8 @@ mode.boss={ boss_yandi:['male','shen',6,['boss_shenyi','boss_shenen','boss_chiyi'],['shu','hiddenboss','bossallowed']], boss_qingmushilian:['male','',0,['boss_qingmu','boss_qingmu_intro1','boss_qingmu_intro2','boss_qingmu_intro3'],['boss'],'wu'], - boss_qinglong:['male','shen',4,['boss_shenyi','releiji'],['wu','hiddenboss','bossallowed']], - boss_mushengoumang:['male','shen',5,['boss_shenyi','boss_buchun'],['wu','hiddenboss','bossallowed']], + boss_qinglong:['male','shen',4,['boss_shenyi','releiji','boss_qingmu2'],['wu','hiddenboss','bossallowed']], + boss_mushengoumang:['male','shen',5,['boss_shenyi','boss_buchun','boss_qingmu3'],['wu','hiddenboss','bossallowed']], boss_shujing:['female','shen',2,['boss_cuidu','boss_zhongdu'],['wu','hiddenboss','bossallowed']], boss_taihao:['male','shen',6,['boss_shenyi','boss_shenen','boss_qingyi'],['wu','hiddenboss','bossallowed']], @@ -963,9 +966,6 @@ mode.boss={ 'step 0' game.delay(); 'step 1' - game.animate.window(1); - 'step 2' - game.changeBoss('boss_huoshenzhurong'); if(game.me!=game.boss){ game.changeSeat(game.boss,6); } @@ -973,13 +973,15 @@ mode.boss={ game.changeSeat(game.boss.nextSeat,3); game.changeSeat(game.boss.previousSeat,5); } + game.changeBoss('boss_huoshenzhurong'); for(var i=0;i