diff --git a/card/mingzhong.js b/card/mingzhong.js index 2bf755296..090ffd43b 100644 --- a/card/mingzhong.js +++ b/card/mingzhong.js @@ -75,9 +75,8 @@ card.mingzhong={ fullskin:true, enable:true, type:'trick', - filterTarget:function(card,player,target){ - return get.distance(player,target)<=1; - }, + range:{global:1}, + filterTarget:true, content:function(){ 'step 0' target.draw(3); @@ -111,8 +110,78 @@ card.mingzhong={ fullskin:true, enable:true, type:'delay', + filterTarget:function(card,player,target){ + return (lib.filter.judge(card,player,target)&&player!=target); + }, + judge:function(card){ + if(get.suit(card)=='club') return 0; + return -3; + }, + effect:function(){ + if(result.bool==false){ + player.addTempSkill('caomu_skill','phaseAfter'); + } + }, + ai:{ + basic:{ + order:1, + useful:1, + value:4.5, + }, + result:{ + player:function(player,target){ + var num=0; + for(var i=0;i3){ + num+=1.1; + } + else if(att>0){ + num++; + } + else if(att<-3){ + num-=1.1; + } + else if(att<0){ + num--; + } + } + } + return num; + }, + target:-1 + }, + } } }, + skill:{ + caomu_skill:{ + unique:true, + trigger:{player:'phaseDrawBegin'}, + forced:true, + popup:false, + silent:true, + content:function(){ + trigger.num--; + }, + group:'caomu_skill2' + }, + caomu_skill2:{ + trigger:{player:'phaseDrawAfter'}, + forced:true, + popup:false, + silent:true, + content:function(){ + var targets=game.filterPlayer(function(current){ + return get.distance(player,current)<=1&&player!=current; + }); + if(targets.length){ + game.asyncDraw(targets); + } + } + } + }, translate:{ shengdong:'声东击西', shengdong_info:'出牌阶段,对距离为1的一名角色使用。你交给目标角色一张手牌,若如此做,其将两张牌交给另一名由你选择的其他角色', diff --git a/character/hearth.js b/character/hearth.js index ff20e5be3..30532ece5 100755 --- a/character/hearth.js +++ b/character/hearth.js @@ -37,6 +37,7 @@ character.hearth={ hs_nozdormu:['male','qun',5,['shixu']], hs_sapphiron:['male','wei',4,['bingdong','stuxi']], hs_kchromaggus:['male','wei',4,['fenlie']], + hs_kesuen:['male','wei',3,['fenlie']], hs_zhishigushu:['male','shu',4,['jiaohui']], hs_zhanzhenggushu:['male','wei',6,['biri']], diff --git a/game/game.js b/game/game.js index f5f71672f..13bebccbe 100755 --- a/game/game.js +++ b/game/game.js @@ -2373,7 +2373,7 @@ }, chess_obstacle:{ name:'随机路障', - init:'0.333', + init:'0', item:{ '0':'关闭', '0.2':'少量', @@ -2386,6 +2386,10 @@ name:'击退效果', init:true, }, + show_range:{ + name:'显示卡牌范围', + init:true, + }, show_distance:{ name:'显示距离', init:true, @@ -7053,11 +7057,11 @@ }, popup:function(name,className){ var name2=get.translation(name); - if(true){ - if(!name2) return; - this.$damagepop(name2,className||'water',true); - return; - } + if(!name2) return; + this.$damagepop(name2,className||'water',true); + }, + popup_old:function(name,className){ + var name2=get.translation(name); var node=ui.create.div('.popup',this.parentNode); if(!name2){ node.remove(); @@ -7086,7 +7090,7 @@ setTimeout(function(){that._popup();},1000); } return node; - }, + }, _popup:function(){ if(this.popups.length){ this.popups.shift().delete(); @@ -7697,18 +7701,7 @@ else{ var node; if(card==undefined||card.length==0) return; - if(false){ - var left=-52+(Math.random()<0.5?1:-1)*Math.random()*100; - var top=-52+(Math.random()<0.5?1:-1)*Math.random()*80; - - node=this.$throwxy2(card, - 'calc(50% '+(left>0?'+':'-')+' '+Math.abs(left)+'px)', - 'calc(50% '+(top>0?'+':'-')+' '+Math.abs(top)+'px)' - ); - } - else{ - node=this.$throwordered(card.copy('thrown')); - } + node=this.$throwordered(card.copy('thrown')); if(time!=undefined){ node.fixed=true; setTimeout(function(){node.delete()},time); @@ -8491,23 +8484,7 @@ $phaseJudge:function(card){ game.addVideo('phaseJudge',this,get.cardInfo(card)); var player=this; - var clone; - // var clone=card.copy('thrown','thrownhighlight',ui.arena); - if(true){ - clone=player.$throw(card); - } - else{ - clone=card.copy('thrown','thrownhighlight',ui.arena).animate('judgestart'); - clone.style.opacity=0.6; - clone.style.left='calc(50% - 52px '+((Math.random()-0.5<0)?'+':'-')+' '+Math.random()*50+'px)'; - clone.style.top='calc(50% - 52px '+((Math.random()-0.5<0)?'+':'-')+' '+Math.random()*40+'px)'; - game.linexy([ - clone.offsetLeft+clone.offsetWidth/2, - clone.offsetTop+clone.offsetHeight/2, - player.offsetLeft+player.offsetWidth/2, - player.offsetTop+player.offsetHeight/2 - ],{opacity:0.5,dashed:true}); - } + var clone=player.$throw(card); if(lib.config.low_performance&&card&&card.clone){ var waitingForTransition=get.time(); _status.waitingForTransition=waitingForTransition; @@ -12368,9 +12345,8 @@ return ok; }, uncheck:function(){ - // ui.roundmenu.show(); var i,j; - if(false){ + if(true){ if(lib.config.mode=='chess'){ var shadows=ui.chessContainer.getElementsByClassName('playergrid temp'); while(shadows.length){ @@ -13322,6 +13298,15 @@ } return false; }, + filterPlayer:function(func){ + var list=[]; + for(var i=0;i'; uiintro.add(translation); } - if(false){ + if(lib.falseitem){ uiintro.add(ui.create.div('.placeholder')); var table,tr,td; table=document.createElement('table'); diff --git a/image/character/ks_kesuen.jpg b/image/character/ks_kesuen.jpg new file mode 100644 index 000000000..8073e6603 Binary files /dev/null and b/image/character/ks_kesuen.jpg differ