diff --git a/card/standard.js b/card/standard.js index 70556c5e9..a6cacfa93 100755 --- a/card/standard.js +++ b/card/standard.js @@ -1494,7 +1494,7 @@ card.standard={ filter:function(event,player){ if(event.name!='phaseJudge'){ if(!event.target) return false; - if(get.type(event.card)!='trick') return false; + if(get.type(event.card)!='trick'&&!get.info(event.card).wuxieable) return false; } return true; }, diff --git a/card/swd.js b/card/swd.js index 466383ad0..005bb3c83 100755 --- a/card/swd.js +++ b/card/swd.js @@ -1,9 +1,58 @@ card.swd={ card:{ + zhuquezhizhang:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, + xuanwuzhihuang:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, + huanglinzhicong:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, + cangchizhibi:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, + qinglongzhigui:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, + baishouzhihu:{ + type:'jiqi', + fullskin:true, + ai:{ + value:8, + useful:6.5, + } + }, jiguantong:{ fullskin:true, type:'trick', enable:true, + wuxieable:true, selectTarget:-1, filterTarget:function(card,player,target){ return target!=player; @@ -193,8 +242,9 @@ card.swd={ }, jiguanfeng:{ fullskin:true, - type:'trick', + type:'jiguan', enable:true, + wuxieable:true, filterTarget:function(card,player,target){ return target!=player; }, @@ -240,7 +290,8 @@ card.swd={ }, jiguanyuan:{ fullskin:true, - type:'trick', + type:'jiguan', + wuxieable:true, enable:function(card,player){ var hs=player.get('he'); return hs.length>1||(hs.length==1&&hs[0]!=card); @@ -335,7 +386,8 @@ card.swd={ lingjiandai:{ fullskin:true, enable:true, - type:'trick', + type:'jiguan', + wuxieable:true, range:{global:1}, filterTarget:true, content:function(){ @@ -353,7 +405,6 @@ card.swd={ result:{ target:function(player,target){ if(target==player&&target.num('h',{type:'equip'})) return 2.5; - if(target.hasSkill('mujiaren_skill')) return 2; return 1; } } @@ -362,7 +413,8 @@ card.swd={ jiguanshu:{ fullskin:true, enable:true, - type:'trick', + type:'jiguan', + wuxieable:true, range:{global:1}, filterTarget:function(card,player,target){ var es=target.get('e'); @@ -414,12 +466,12 @@ card.swd={ mujiaren:{ fullskin:true, enable:true, - type:'trick', + type:'jiguan', range:{global:1}, - filterTarget:function(card,player,target){ - return !target.hasSkill('mujiaren_skill'); - }, + wuxieable:true, + filterTarget:true, content:function(){ + target.draw(); target.addSkill('mujiaren_skill'); }, ai:{ @@ -428,7 +480,10 @@ card.swd={ }, order:10.1, result:{ - target:1 + target:function(player,target){ + if(target.hasSkill('mujiaren_skill')) return 0.5; + return 1; + } } } }, @@ -1297,6 +1352,58 @@ card.swd={ }, }, skill:{ + baishouzhihu_equip1:{ + trigger:{player:'phaseEnd'}, + direct:true, + content:function(){ + "step 0" + player.chooseTarget([1,1],'是否发动【风牙】?',function(card,player,target){ + if(player==target) return false; + return target.num('he')>0; + }).ai=function(target){ + return -ai.get.attitude(player,target); + }; + "step 1" + if(result.bool){ + player.logSkill('baishouzhihu_equip1',result.targets); + player.discardPlayerCard(result.targets[0],'he',true); + } + else{ + event.finish(); + } + }, + }, + baishouzhihu_equip2:{ + inherit:'baishouzhihu_equip1' + }, + baishouzhihu_equip3:{ + inherit:'baishouzhihu_equip1' + }, + baishouzhihu_equip4:{ + inherit:'baishouzhihu_equip1' + }, + baishouzhihu_equip5:{ + inherit:'baishouzhihu_equip1' + }, + qinglongzhigui_equip1:{ + trigger:{player:'phaseEnd'}, + forced:true, + content:function(){ + player.draw(); + } + }, + qinglongzhigui_equip2:{ + inherit:'qinglongzhigui_equip1' + }, + qinglongzhigui_equip3:{ + inherit:'qinglongzhigui_equip1' + }, + qinglongzhigui_equip4:{ + inherit:'qinglongzhigui_equip1' + }, + qinglongzhigui_equip5:{ + inherit:'qinglongzhigui_equip1' + }, kunlunjingc:{ enable:'phaseUse', usable:1, @@ -2419,13 +2526,11 @@ card.swd={ mujiaren_skill:{ enable:'phaseUse', filter:function(event,player){ - return player.num('h',{type:'basic'})0; }, + filterCard:{type:'hslingjian'}, check:function(card){ - return 5-ai.get.value(card); + return 10-ai.get.value(card); }, viewAs:{name:'jiguanshu'} }, @@ -2439,47 +2544,69 @@ card.swd={ switch(get.type(hs[i])){ case 'equip':types.add(get.subtype(hs[i]));break; case 'hslingjian':lingjians.add(hs[i].name);break; + case 'jiqi':if(!lingjians.contains(hs[i].name)) lingjians.unshift(hs[i].name);break; } } var str=''; for(var i=0;i'; - } + str+='
'; + str+='
'+lib.translate[lingjians[i]]+'
'; + for(var j=0;j'; + if(type=='jiqi') break; + } + str+='
'; } return str; }, check:function(card){ + if(get.type(card)=='jiqi'){ + if(_status.event.player.num('h')>_status.event.player.hp){ + return 0.5; + } + return 0; + } return 1+ai.get.value(card); }, filterCard:function(card){ var type=get.type(card); if(type=='equip'&&!lib.inpile.contains(card.name)) return false; - for(var i=0;i10) return 10+(value-10)/10; + if(value<9) return 8+value/10; + return value; + }; + if(typeof lib.card[name].ai.equipValue=='number'){ + lib.card[name].ai.equipValue=getValue(lib.card[name].ai.equipValue,dvalue); + } + else if(typeof lib.card[name].ai.equipValue=='function'){ + lib.card[name].ai.equipValue=function(){ + return getValue(lib.card[equipname].ai.equipValue.apply(this,arguments),dvalue); } - else if(typeof lib.card[name].ai.equipValue=='function'){ - lib.card[name].ai.equipValue=function(){ - return lib.card[equipname].ai.equipValue.apply(this,arguments)+1; - } + } + else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='number'){ + lib.card[name].ai.basic.equipValue=getValue(lib.card[name].ai.basic.equipValue,dvalue); + } + else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='function'){ + lib.card[name].ai.basic.equipValue=function(){ + return getValue(lib.card[equipname].ai.basic.equipValue.apply(this,arguments),dvalue); } - else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='number'){ - lib.card[name].ai.basic.equipValue=Math.min(10,lib.card[name].ai.basic.equipValue+1); + } + else{ + if(dvalue==3){ + lib.card[name].ai.equipValue=7; } - else if(lib.card[name].ai.basic&&typeof lib.card[name].ai.basic.equipValue=='function'){ - lib.card[name].ai.basic.equipValue=function(){ - return lib.card[equipname].ai.basic.equipValue.apply(this,arguments)+1; - } + else{ + lib.card[name].ai.equipValue=dvalue; } } if(Array.isArray(lib.card[name].skills)){ @@ -2562,13 +2712,7 @@ card.swd={ lib.card[name].filterTarget=true; lib.card[name].selectTarget=1; lib.card[name].range={global:1}; - var str; - if(cards.length==2){ - str=lib.translate[cards[0].name+'_duanzao2']+lib.translate[cards[1].name+'_duanzao2']; - } - else{ - str=lib.translate[cards[0].name+'_duanzao']; - } + var str=lib.translate[cards[0].name+'_duanzao']; var str2=lib.translate[equip.name]; if(str2.length>2){ str2=str2.slice(0,2); @@ -2591,8 +2735,8 @@ card.swd={ translate:lib.translate[name], info:str2, card:equip.name, - legend:cards.length==2, - epic:cards.length==1 + legend:type=='jiqi', + epic:type=='hslingjian' }); } catch(e){ @@ -2600,17 +2744,18 @@ card.swd={ } return name; }, - selectCard:function(){ - if(ui.selected.cards.length==2&& - get.type(ui.selected.cards[0])=='hslingjian'&& - get.type(ui.selected.cards[1])=='hslingjian'){ - return [3,3]; - } - if(_status.event.player.hasSkill('mujiaren_skill')) return [2,3]; - return 2; - }, + selectCard:2, + // selectCard:function(){ + // if(ui.selected.cards.length==2&& + // get.type(ui.selected.cards[0])=='hslingjian'&& + // get.type(ui.selected.cards[1])=='hslingjian'){ + // return [3,3]; + // } + // if(_status.event.player.hasSkill('mujiaren_skill')) return [2,3]; + // return 2; + // }, filter:function(event,player){ - if(!player.num('h',{type:'hslingjian'})) return false; + if(!player.num('h',{type:['hslingjian','jiqi']})) return false; var es=player.get('he',{type:'equip'}); for(var i=0;i.equips>div.legend{ + border: 1px solid rgb(192, 90, 255); +} +#arena:not(.chess):not(.textequip) .player[data-position='0']>.equips>div.epic{ + border: 1px solid rgb(90, 171, 255); +} #arena:not(.chess) .player[data-position='0']>.equips>.equip5{ border-radius: 45px; }