diff --git a/card/compensate.js b/card/compensate.js deleted file mode 100644 index 830f9cac2..000000000 --- a/card/compensate.js +++ /dev/null @@ -1,105 +0,0 @@ -card.compensate={ - list:[ - ["diamond",3,'guohe'], - ['club',8,'guohe'], - ['spade',13,'guohe'], - - ['diamond',8,'shunshou'], - ['heart',5,'shunshou'], - - ["club",10,"wuxie"], - ["spade",10,"wuxie"], - ["spade",11,"wuxie"], - - ['heart',8,'tao'], - ['heart',10,'tao'], - - ["heart",10,"sha","fire"], - ["diamond",4,"sha","fire"], - ["heart",5,"sha","fire"], - ["spade",4,"sha","thunder"], - ["spade",5,"sha","thunder"], - ["club",5,"sha","thunder"], - ["spade",9,"sha","thunder"], - ["club",8,"sha"], - ["club",10,"sha"], - ["club",2,"sha"], - ["club",10,"sha"], - ["spade",10,"sha"], - ["spade",10,"sha"], - ["spade",11,"sha"], - ["spade",6,"sha"], - ["club",2,"sha"], - ["club",8,"sha"], - ["spade",9,"sha"], - - ["spade",4,"sha"], - ["spade",7,"sha"], - ["spade",1,"sha"], - ["club",4,"sha"], - ["club",7,"sha"], - ["club",2,"sha"], - - ["heart",10,"sha","fire"], - ["diamond",4,"sha","fire"], - ["heart",5,"sha","fire"], - ["spade",4,"sha","thunder"], - ["spade",5,"sha","thunder"], - ["club",5,"sha","thunder"], - ["spade",9,"sha","thunder"], - ["club",8,"sha"], - ["club",10,"sha"], - ["club",2,"sha"], - ["club",10,"sha"], - ["spade",10,"sha"], - ["spade",10,"sha"], - ["spade",11,"sha"], - ["spade",6,"sha"], - ["club",2,"sha"], - ["club",8,"sha"], - ["spade",9,"sha"], - - ["spade",4,"sha"], - ["spade",7,"sha"], - ["spade",1,"sha"], - ["club",4,"sha"], - ["club",7,"sha"], - ["club",2,"sha"], - - ["spade",4,"sha"], - ["spade",7,"sha"], - ["spade",1,"sha"], - ["club",4,"sha"], - ["club",7,"sha"], - ["club",2,"sha"], - - ["heart",11,"shan"], - ["heart",12,"shan"], - ["diamond",6,"shan"], - ["heart",11,"shan"], - ["heart",8,"shan"], - ["diamond",5,"shan"], - ["diamond",2,"shan"], - ["heart",11,"shan"], - ["heart",12,"shan"], - ["heart",12,"shan"], - ["heart",4,"shan"], - ["heart",4,"shan"], - ["diamond",6,"shan"], - ["diamond",7,"shan"], - ["heart",11,"shan"], - ["heart",12,"shan"], - ["diamond",6,"shan"], - ["diamond",7,"shan"], - - ["diamond",6,"shan"], - ["diamond",7,"shan"], - ["heart",11,"shan"], - ["heart",12,"shan"], - ["diamond",6,"shan"], - ["diamond",7,"shan"], - - ["club",5,"tiesuo"], - ["spade",8,"tiesuo"], - ], -} diff --git a/card/swd.js b/card/swd.js index 02c8f19c9..bfffa5a75 100644 --- a/card/swd.js +++ b/card/swd.js @@ -811,16 +811,25 @@ card.swd={ }, xianluhui:{ fullskin:true, - type:'trick', + type:'basic', enable:true, selectTarget:-1, filterTarget:function(card,player,target){ return target.isDamaged(); }, content:function(){ - target.draw(Math.min(3,target.maxHp-target.hp)); + targets.sort(lib.sort.seat); + var list=[]; + for(var i=0;i1000) dn=1000; + if(dn>0){ + var p=0; + for(var i in data){ + if(lib.config['cardpile_'+i+'_playpackconfig']){ + for(var j in data[i]){ + var n=Math.round(dn*data[i][j]/num); + while(n--){ + if(i=='huosha'||i=='leisha'){ + lib.card.list.push([j,rand(),'sha',i.slice(0,3)]); + } + else{ + lib.card.list.push([j,rand(),i]); + } + } + } + } + } + } + }, + help:{ + '牌堆补充':'