From 99eecebf6b70141b4c53c7b3829b5e16366c3ef5 Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 27 Jun 2016 10:17:51 +0800 Subject: [PATCH] judge --- character/sp.js | 3 ++ character/swd.js | 6 +++- game/game.js | 64 ++++++++++++++++++++++++++++++++++++--- game/update.js | 5 ++- layout/default/layout.css | 6 ++++ 5 files changed, 78 insertions(+), 6 deletions(-) diff --git a/character/sp.js b/character/sp.js index 45d4a043f..08cdfb246 100755 --- a/character/sp.js +++ b/character/sp.js @@ -317,6 +317,9 @@ character.sp={ jili:{ trigger:{global:'useCard'}, forced:true, + check:function(event,player){ + return ai.get.effect(player,event.card,event.player,player)>0; + }, filter:function(event,player){ if(get.color(event.card)!='red') return false; if(!event.targets) return false; diff --git a/character/swd.js b/character/swd.js index 309125f7c..fb5afc58d 100755 --- a/character/swd.js +++ b/character/swd.js @@ -3311,7 +3311,7 @@ character.swd={ } var js=get.infoCards(data[i].j); for(var j=0;j'+get.translation(cards[0].viewAs)+'(',cards,')'); } else{ + cards[0].classList.remove('fakejudge'); game.log(player,'被贴上了',cards); } game.addVideo('addJudge',player,[get.cardInfo(cards[0]),cards[0].viewAs]); @@ -7569,6 +7592,7 @@ handcards:this.get('h'), equips:this.get('e'), judges:this.get('j'), + views:[], position:parseInt(this.dataset.position), hujia:this.hujia, side:this.side, @@ -7579,6 +7603,9 @@ linked:this.isLinked(), turnedover:this.isTurnedOver(), } + for(var i=0;iui.arenalog.offsetHeight){ - ui.arenalog.lastChild.remove(); - } + var nodeentry=node.cloneNode(true); + ui.arenalog.insertBefore(nodeentry,ui.arenalog.firstChild); + if(!lib.config.clear_log){ + while(ui.arenalog.childNodes.length&&ui.arenalog.scrollHeight>ui.arenalog.offsetHeight){ + ui.arenalog.lastChild.remove(); + } + } + if(!lib.config.low_performance){ + nodeentry.style.transition='all 0s'; + nodeentry.style.marginBottom=(-nodeentry.offsetHeight)+'px'; + ui.refresh(nodeentry); + nodeentry.style.transition=''; + nodeentry.style.marginBottom=''; + } + if(lib.config.clear_log){ + nodeentry.timeout=setTimeout(function(){ + nodeentry.delete(); + },1000); + for(var i=0;idiv{ + -webkit-animation: game_start 0.5s; } /*#arena[data-font_size='14']{ font-size:14px; @@ -575,6 +579,8 @@ div:not(.handcards)>.card>.info>span, #arena.low_performance .player .equips, #arena.low_performance .player .name{transition: all 0s} .judges>.card>.background,.marks>.card>.background{font-size: 20px;height: 20px;padding-top: 3px;} +.judges>.card.fakejudge.fullskin>.image{display: none !important} +.judges>.card.fakejudge.fullskin>.background{display: block !important;font-family: 'huangcao' !important;padding-top: 4px !important;} .button.card>.background{font-size: 68px;height: 68px;padding-top: 12px;} .card>.background{font-family:'xiaozhuan'} .card>.background.tight{letter-spacing: -0.2em}