From 852eaebe8ec02b5ca30affc37db5ec1dc1fe96e9 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 21 Jun 2016 09:08:42 +0800 Subject: [PATCH] d --- game/game.js | 4 +-- mode/identity.js | 64 ++++++++++++++++++++++++++++++------------------ mode/story.js | 15 ++++++++---- 3 files changed, 52 insertions(+), 31 deletions(-) diff --git a/game/game.js b/game/game.js index 8d9038499..3d94dc186 100755 --- a/game/game.js +++ b/game/game.js @@ -27793,7 +27793,7 @@ } } - if(lib.config.show_favourite&&lib.character[node.name]){ + if(lib.config.show_favourite&&lib.character[node.name]&&get.mode()!='story'){ var addFavourite=ui.create.div('.text.center'); addFavourite.link=node.link; if(lib.config.favouriteCharacter.contains(node.name)){ @@ -28053,7 +28053,7 @@ uiintro.add('
【'+translation+'】
'+lib.translate[skills[i]+'_info']+'
'); } } - if((node.parentNode.classList.contains('menu-buttons')||lib.config.show_favourite)&&lib.character[node.link]){ + if((node.parentNode.classList.contains('menu-buttons')||lib.config.show_favourite)&&lib.character[node.link]&&get.mode()!='story'){ var addFavourite=ui.create.div('.text.center'); addFavourite.link=node.link; addFavourite.style.marginBottom='15px'; diff --git a/mode/identity.js b/mode/identity.js index be32ff3d6..4ed2cdfcb 100755 --- a/mode/identity.js +++ b/mode/identity.js @@ -609,38 +609,52 @@ mode.identity={ delete game.zhu.isZhu; delete game.zhu.identityShown; } - - if(this.link!='zhu'&&game.me.identity!='zhu'){ - var current=this.parentNode.querySelector('.thundertext'); - if(current){ - current.classList.remove('thundertext'); + var current=this.parentNode.querySelector('.thundertext'); + if(current){ + current.classList.remove('thundertext'); + } + current=seats.querySelector('.thundertext'); + if(current){ + current.classList.remove('thundertext'); + } + var link=this.link; + if(link=='random'){ + link=['zhu','zhong','nei','fan'].randomGet(); + for(var i=0;i