2017-01-31 14:08:34 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
card.gujian={
|
|
|
|
|
card:{
|
|
|
|
|
chunbing:{
|
2017-01-31 15:18:53 +00:00
|
|
|
|
fullskin:true,
|
2017-02-01 17:31:24 +00:00
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
2017-01-31 15:18:53 +00:00
|
|
|
|
},
|
2017-02-01 17:31:24 +00:00
|
|
|
|
gudonggeng:{
|
2017-01-31 15:18:53 +00:00
|
|
|
|
fullskin:true,
|
2017-02-01 17:31:24 +00:00
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
yougeng:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
liyutang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
mizhilianou:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
xiajiao:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
tanhuadong:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
qingtuan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
2017-02-02 05:06:23 +00:00
|
|
|
|
yuanbaorou:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
molicha:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
|
|
|
|
mapodoufu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'food',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
},
|
2017-02-02 06:09:00 +00:00
|
|
|
|
heilonglinpian:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-06 07:35:38 +00:00
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.changeHujia();
|
|
|
|
|
target.addTempSkill('heilonglinpian',{player:'phaseBegin'});
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
value:[5.5,1],
|
|
|
|
|
useful:1,
|
|
|
|
|
order:2,
|
|
|
|
|
result:{
|
|
|
|
|
target:1
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-02 06:09:00 +00:00
|
|
|
|
},
|
|
|
|
|
mutoumianju:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip2',
|
2017-02-06 07:35:38 +00:00
|
|
|
|
skills:['mutoumianju_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:4
|
|
|
|
|
}
|
2017-02-02 06:09:00 +00:00
|
|
|
|
},
|
|
|
|
|
yuheng:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
2017-02-06 06:56:22 +00:00
|
|
|
|
nopower:true,
|
|
|
|
|
nomod:true,
|
|
|
|
|
skills:['yuheng_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
if(player.hp>=4) return 5;
|
|
|
|
|
if(player.hp>=3) return 4;
|
|
|
|
|
if(player.hp>=2) return 2;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yuheng_plus:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
nopower:true,
|
|
|
|
|
nomod:true,
|
|
|
|
|
epic:true,
|
|
|
|
|
cardimage:'yuheng',
|
|
|
|
|
skills:['yuheng_plus_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
if(player.hp>=4) return 7;
|
|
|
|
|
if(player.hp>=3) return 6;
|
|
|
|
|
if(player.hp>=2) return 2.5;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yuheng_pro:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
nopower:true,
|
|
|
|
|
nomod:true,
|
|
|
|
|
legend:true,
|
|
|
|
|
cardimage:'yuheng',
|
|
|
|
|
skills:['yuheng_pro_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
if(player.hp>=4) return 7.5;
|
|
|
|
|
if(player.hp>=3) return 6;
|
|
|
|
|
if(player.hp>=2) return 2.5;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-02 06:09:00 +00:00
|
|
|
|
},
|
|
|
|
|
shujinsan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
2017-02-06 06:56:22 +00:00
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
target.chooseToDiscard('he',[1,target.num('he')],'弃置任意张牌并摸等量的牌').ai=function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
target.draw(result.cards.length);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1.5,
|
|
|
|
|
value:[4,1],
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target==player){
|
|
|
|
|
var cards=player.get('he');
|
|
|
|
|
var num=-1;
|
|
|
|
|
for(var i=0;i<cards.length;i++){
|
|
|
|
|
if(ai.get.value(cards[i])<6) num++;
|
|
|
|
|
}
|
|
|
|
|
if(player.needsToDiscard()&&num<1){
|
|
|
|
|
num=1;
|
|
|
|
|
}
|
|
|
|
|
return Math.max(0,num);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return target.num('he')/2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-02 06:09:00 +00:00
|
|
|
|
},
|
2017-02-02 06:32:00 +00:00
|
|
|
|
ziyangdan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
},
|
|
|
|
|
yunvyuanshen:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
},
|
|
|
|
|
liuxiaxianniang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
},
|
2017-02-02 07:34:28 +00:00
|
|
|
|
bingpotong:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
if(target.num('h')==0||player.num('h')==0){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
player.chooseCard(true);
|
|
|
|
|
"step 1"
|
|
|
|
|
event.card1=result.cards[0];
|
|
|
|
|
var rand=Math.random()<0.5;
|
|
|
|
|
target.chooseCard(true).ai=function(card){
|
|
|
|
|
var num=0;
|
|
|
|
|
if(get.color(card)=='red'){
|
2017-02-02 11:03:27 +00:00
|
|
|
|
if(rand) num-=6;
|
2017-02-02 07:34:28 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2017-02-02 11:03:27 +00:00
|
|
|
|
if(!rand) num-=6;
|
2017-02-02 07:34:28 +00:00
|
|
|
|
}
|
2017-02-02 11:03:27 +00:00
|
|
|
|
var value=ai.get.value(card);
|
|
|
|
|
if(value>=8) return -100;
|
|
|
|
|
return num-value;
|
2017-02-02 07:34:28 +00:00
|
|
|
|
};
|
|
|
|
|
"step 2"
|
|
|
|
|
event.card2=result.cards[0];
|
|
|
|
|
ui.arena.classList.add('thrownhighlight');
|
|
|
|
|
game.addVideo('thrownhighlight1');
|
|
|
|
|
player.$compare(event.card1,target,event.card2);
|
|
|
|
|
game.delay(4);
|
|
|
|
|
"step 3"
|
|
|
|
|
game.log(player,'展示了',event.card1);
|
|
|
|
|
game.log(target,'展示了',event.card2);
|
|
|
|
|
if(get.color(event.card2)==get.color(event.card1)){
|
|
|
|
|
player.discard(event.card1).animate=false;
|
|
|
|
|
target.$gain2(event.card2);
|
|
|
|
|
var clone=event.card1.clone;
|
|
|
|
|
if(clone){
|
|
|
|
|
clone.style.transition='all 0.5s';
|
|
|
|
|
clone.style.transform='scale(1.2)';
|
|
|
|
|
clone.delete();
|
|
|
|
|
game.addVideo('deletenode',player,get.cardsInfo([clone]));
|
|
|
|
|
}
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.$gain2(event.card1);
|
|
|
|
|
target.discard(event.card2).animate=false;
|
|
|
|
|
var clone=event.card2.clone;
|
|
|
|
|
if(clone){
|
|
|
|
|
clone.style.transition='all 0.5s';
|
|
|
|
|
clone.style.transform='scale(1.2)';
|
|
|
|
|
clone.delete();
|
|
|
|
|
game.addVideo('deletenode',target,get.cardsInfo([clone]));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ui.arena.classList.remove('thrownhighlight');
|
|
|
|
|
game.addVideo('thrownhighlight2');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:2,
|
|
|
|
|
value:5,
|
|
|
|
|
useful:1,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player,target){
|
|
|
|
|
if(player.num('h')<=Math.min(5,Math.max(2,player.hp))&&_status.event.name=='chooseToUse'){
|
|
|
|
|
if(typeof _status.event.filterCard=='function'&&
|
|
|
|
|
_status.event.filterCard({name:'dujian'})){
|
|
|
|
|
return -10;
|
|
|
|
|
}
|
|
|
|
|
if(_status.event.skill){
|
|
|
|
|
var viewAs=get.info(_status.event.skill).viewAs;
|
|
|
|
|
if(viewAs=='dujian') return -10;
|
|
|
|
|
if(viewAs&&viewAs.name=='dujian') return -10;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(player.num('h')<=1) return 0;
|
|
|
|
|
return -1.5;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseHp:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
feibiao:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return get.distance(player,target)>1;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
if(!target.num('h',{color:'black'})){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.chooseToDiscard({color:'black'},'弃置一张黑色手牌或受流失一点体力').ai=function(card){
|
|
|
|
|
return 8-ai.get.value(card);
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(!result.bool){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:9,
|
|
|
|
|
value:3,
|
|
|
|
|
useful:1,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:-2
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
discard:1,
|
|
|
|
|
loseHp:1
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-02 08:04:03 +00:00
|
|
|
|
},
|
|
|
|
|
qiankunbiao:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
wenhuangsan:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
tuhunsha:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
shenhuofeiya:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
mianlijinzhen:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
longxugou:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
liutouge:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
liufengsan:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
shihuifen:{
|
2017-02-06 06:56:22 +00:00
|
|
|
|
type:'trick',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
fullskin:true,
|
2017-02-06 06:56:22 +00:00
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
_status.currentPhase.chooseToRespond({name:'shan'});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(!result.bool){
|
|
|
|
|
_status.currentPhase.addTempSkill('shihuifen','phaseUseAfter');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
value:[5,1],
|
|
|
|
|
useful:[5,1],
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondShan:1,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.num('h')>=3||target.needsToDiscard()) return -1.5;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-02 08:04:03 +00:00
|
|
|
|
},
|
|
|
|
|
jinlianzhu:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
2017-01-31 14:08:34 +00:00
|
|
|
|
},
|
2017-02-06 06:56:22 +00:00
|
|
|
|
skill:{
|
2017-02-06 07:35:38 +00:00
|
|
|
|
heilonglinpian:{
|
|
|
|
|
mark:true,
|
|
|
|
|
marktext:'鳞',
|
|
|
|
|
intro:{
|
2017-02-06 08:19:53 +00:00
|
|
|
|
content:'防御距离+1'
|
2017-02-06 07:35:38 +00:00
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
globalTo:function(from,to,distance){
|
|
|
|
|
return distance+1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-02-06 06:56:22 +00:00
|
|
|
|
mutoumianju_skill:{
|
|
|
|
|
enable:'chooseToUse',
|
|
|
|
|
filterCard:true,
|
|
|
|
|
viewAs:{name:'sha'},
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
if(!player.num('h')) return false;
|
|
|
|
|
},
|
|
|
|
|
prompt:'将一张手牌当杀使用',
|
|
|
|
|
check:function(card){return 5-ai.get.value(card)},
|
|
|
|
|
ai:{
|
|
|
|
|
order:3.1,
|
|
|
|
|
skillTagFilter:function(player,tag,arg){
|
|
|
|
|
if(arg!='use') return false;
|
|
|
|
|
if(!player.num('h')) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yuheng_skill:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
var hs=target.get('h');
|
|
|
|
|
if(hs.length){
|
|
|
|
|
var card=hs.randomGet();
|
|
|
|
|
player.gain(card,target);
|
|
|
|
|
target.$give(card,player);
|
|
|
|
|
if(get.suit(card)=='spade'){
|
|
|
|
|
event.bool=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.bool){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
var card=player.getEquip('yuheng');
|
|
|
|
|
if(card){
|
|
|
|
|
if(typeof card.storage.yuheng!='number'){
|
|
|
|
|
card.storage.yuheng=1;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.storage.yuheng++;
|
|
|
|
|
}
|
|
|
|
|
if(card.storage.yuheng>=3){
|
|
|
|
|
card.init([card.suit,card.number,'yuheng_plus',card.nature]);
|
|
|
|
|
player.addTempSkill('yuheng_plus_temp','phaseAfter');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)>=0) return 0;
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
var num=-1/Math.sqrt(1+nh);
|
|
|
|
|
if(player.hp>=4) return num;
|
|
|
|
|
if(player.hp>=3&&nh<=2) return num;
|
|
|
|
|
if(player.hp>=2&&target.hp==1&&nh<=2) return num;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yuheng_plus_temp:{},
|
|
|
|
|
yuheng_plus_skill:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.hasSkill('yuheng_plus_temp');
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
var hs=target.get('h');
|
|
|
|
|
if(hs.length){
|
|
|
|
|
var card=hs.randomGet();
|
|
|
|
|
player.gain(card,target);
|
|
|
|
|
target.$give(card,player);
|
|
|
|
|
if(get.color(card)=='black'){
|
|
|
|
|
event.bool=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.bool){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
var card=player.getEquip('yuheng_plus');
|
|
|
|
|
if(card){
|
|
|
|
|
if(typeof card.storage.yuheng!='number'){
|
|
|
|
|
card.storage.yuheng=1;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.storage.yuheng++;
|
|
|
|
|
}
|
|
|
|
|
if(card.storage.yuheng>=7){
|
|
|
|
|
card.init([card.suit,card.number,'yuheng_pro',card.nature]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)>=0) return 0;
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
var num=-1/Math.sqrt(1+nh);
|
|
|
|
|
if(player.hp>=4) return num;
|
|
|
|
|
if(player.hp>=3&&nh<=2) return num;
|
|
|
|
|
if(player.hp>=2&&target.hp==1&&nh<=2) return num;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yuheng_pro_skill:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
var hs=target.get('h');
|
|
|
|
|
if(hs.length){
|
|
|
|
|
var card=hs.randomGet();
|
|
|
|
|
player.gain(card,target);
|
|
|
|
|
target.$give(card,player);
|
|
|
|
|
if(get.color(card)=='black'){
|
|
|
|
|
event.bool=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.bool){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)>=0) return 0;
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
var num=-1/Math.sqrt(1+nh);
|
|
|
|
|
if(player.hp>=4) return num;
|
|
|
|
|
if(player.hp>=3&&nh<=2) return num;
|
|
|
|
|
if(player.hp>=2&&target.hp==1&&nh<=2) return num;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shihuifen:{
|
|
|
|
|
mark:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'使用卡牌无法指定其他角色为目标'
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
playerEnabled:function(card,player,target){
|
|
|
|
|
if(player!=target) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
_shihuifen:{
|
|
|
|
|
trigger:{global:'phaseUseBegin'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.player==player) return false;
|
|
|
|
|
if(!lib.filter.targetEnabled({name:'shihuifen'},player,event.player)) return false;
|
|
|
|
|
return player.hasCard('shihuifen');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.chooseToUse(get.prompt('shihuifen',trigger.player).replace(/发动/,'使用'),function(card,player){
|
|
|
|
|
if(card.name!='shihuifen') return false;
|
|
|
|
|
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
|
|
|
|
|
if(mod!='unchanged') return mod;
|
|
|
|
|
return true;
|
|
|
|
|
},trigger.player,-1).targetRequired=true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2017-02-01 17:31:24 +00:00
|
|
|
|
cardType:{
|
|
|
|
|
food:0.3
|
|
|
|
|
},
|
2017-01-31 14:08:34 +00:00
|
|
|
|
translate:{
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// jinlianzhu:'金莲珠',
|
|
|
|
|
// jinlianzhu_info:'金莲珠',
|
2017-02-06 06:56:22 +00:00
|
|
|
|
shihuifen:'石灰粉',
|
|
|
|
|
shihuifen_info:'在一名其他角色的出牌阶段开始时对其使用,目标需打出一张闪,否则此阶段使用卡牌无法指定其他角色为目标',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// liufengsan:'流风散',
|
|
|
|
|
// liufengsan_info:'流风散',
|
|
|
|
|
// liutouge:'六骰格',
|
|
|
|
|
// liutouge_info:'六骰格',
|
|
|
|
|
// longxugou:'龙须钩',
|
|
|
|
|
// longxugou_info:'龙须钩',
|
|
|
|
|
// mianlijinzhen:'棉里针',
|
|
|
|
|
// mianlijinzhen_info:'棉里针',
|
|
|
|
|
// shenhuofeiya:'神火飞鸦',
|
|
|
|
|
// shenhuofeiya_info:'神火飞鸦',
|
|
|
|
|
// tuhunsha:'土魂砂',
|
|
|
|
|
// tuhunsha_info:'土魂砂',
|
|
|
|
|
// wenhuangsan:'瘟癀伞',
|
|
|
|
|
// wenhuangsan_info:'瘟癀伞',
|
|
|
|
|
// qiankunbiao:'乾坤镖',
|
|
|
|
|
// qiankunbiao_info:'乾坤镖',
|
|
|
|
|
|
2017-02-02 07:34:28 +00:00
|
|
|
|
bingpotong:'冰魄筒',
|
|
|
|
|
bingpotong_info:'出牌阶段,对一名有手牌的角色使用,你与其同时展示一张手牌,若颜色相同,你弃置展示的牌,目标流失一点体力;若颜色不同,目标弃置展示的牌',
|
|
|
|
|
feibiao:'飞镖',
|
|
|
|
|
feibiao_info:'出牌阶段,对一名距离1以外的角色使用,令其弃置一张黑色手牌或流失一点体力',
|
|
|
|
|
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// liuxiaxianniang:'流霞仙酿',
|
|
|
|
|
// liuxiaxianniang_info:'流霞仙酿',
|
|
|
|
|
// yunvyuanshen:'玉女元参',
|
|
|
|
|
// yunvyuanshen_info:'玉女元参',
|
|
|
|
|
// ziyangdan:'紫阳丹',
|
|
|
|
|
// ziyangdan_info:'紫阳丹',
|
2017-02-06 06:56:22 +00:00
|
|
|
|
yuheng:'玉衡',
|
|
|
|
|
yuheng_plus:'玉衡',
|
|
|
|
|
yuheng_pro:'玉衡',
|
|
|
|
|
yuheng_skill:'玉衡',
|
|
|
|
|
yuheng_plus_skill:'玉衡',
|
|
|
|
|
yuheng_pro_skill:'玉衡',
|
|
|
|
|
yuheng_info:'出牌阶段限一次,你可以失去一点体力,然后获得一名其他角色的一张手牌并展示,若为黑桃牌,该角色也失去一点体力(此牌不可被其它牌强化;此牌在本局游戏中第三次和第七次发动效果后,分别获得一次强化)',
|
|
|
|
|
yuheng_plus_info:'由普通玉衡强化得到,将玉衡技能描述中的“黑桃牌”改为”黑色牌',
|
|
|
|
|
yuheng_pro_info:'由普通玉衡二次强化得到,将玉横技能描述中的“黑桃牌”改为”黑色牌,并去掉使用次数限制',
|
|
|
|
|
yuheng_skill_info:'出牌阶段限一次,你可以失去一点体力,然后获得一名其他角色的手牌并展示,若为黑桃牌,该角色也失去一点体力',
|
|
|
|
|
yuheng_plus_skill_info:'出牌阶段限一次,你可以失去一点体力,然后获得一名其他角色的手牌并展示,若为黑色牌,该角色也失去一点体力',
|
|
|
|
|
yuheng_pro_skill_info:'出牌阶段,你可以失去一点体力,然后获得一名其他角色的手牌并展示,若为黑色牌,该角色也失去一点体力',
|
|
|
|
|
shujinsan:'舒筋散',
|
|
|
|
|
shujinsan_info:'对任意角色使用,目标可弃置任意张牌,并摸等量的牌',
|
|
|
|
|
mutoumianju:'木头面具',
|
|
|
|
|
mutoumianju_info:'你可以将一张手牌当作杀使用',
|
|
|
|
|
mutoumianju_skill:'木杀',
|
|
|
|
|
mutoumianju_skill_info:'你可以将一张手牌当作杀使用',
|
2017-02-06 07:35:38 +00:00
|
|
|
|
heilonglinpian:'黑龙鳞片',
|
2017-02-06 08:19:53 +00:00
|
|
|
|
heilonglinpian_info:'对自己使用,获得一点护甲,直到下一回合开始,你的防御距离+1',
|
2017-02-02 06:09:00 +00:00
|
|
|
|
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// food:'食物',
|
|
|
|
|
// chunbing:'春饼',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// chunbing_info:'春饼',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// gudonggeng:'骨董羹',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// gudonggeng_info:'骨董羹',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// yougeng:'酉羹',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// yougeng_info:'酉羹',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// liyutang:'鲤鱼汤',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// liyutang_info:'鲤鱼汤',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// mizhilianou:'蜜汁藕',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// mizhilianou_info:'蜜汁藕',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// xiajiao:'虾饺',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// xiajiao_info:'虾饺',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// tanhuadong:'昙花冻',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// tanhuadong_info:'昙花冻',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// qingtuan:'青团',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// qingtuan_info:'青团',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// luyugeng:'鲈鱼羹',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// luyugeng_info:'鲈鱼羹',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// yuanbaorou:'元宝肉',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// yuanbaorou_info:'元宝肉',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// molicha:'茉莉茶',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// molicha_info:'茉莉茶',
|
2017-02-02 08:04:03 +00:00
|
|
|
|
// mapodoufu:'麻婆豆腐',
|
2017-02-02 11:03:27 +00:00
|
|
|
|
// mapodoufu_info:'麻婆豆腐',
|
2017-02-02 07:34:28 +00:00
|
|
|
|
},
|
|
|
|
|
list:[
|
|
|
|
|
['club',8,'feibiao','poison'],
|
|
|
|
|
['diamond',9,'feibiao','poison'],
|
|
|
|
|
['spade',11,'feibiao','poison'],
|
|
|
|
|
|
|
|
|
|
['spade',3,'bingpotong','poison'],
|
|
|
|
|
['club',11,'bingpotong','poison'],
|
|
|
|
|
['club',12,'bingpotong','poison'],
|
2017-02-06 06:56:22 +00:00
|
|
|
|
|
|
|
|
|
['club',5,'shihuifen'],
|
|
|
|
|
['club',1,'shihuifen'],
|
|
|
|
|
['spade',13,'shihuifen'],
|
|
|
|
|
|
|
|
|
|
['spade',7,'yuheng'],
|
|
|
|
|
['club',4,'mutoumianju'],
|
2017-02-06 07:35:38 +00:00
|
|
|
|
['spade',2,'heilonglinpian'],
|
2017-02-06 06:56:22 +00:00
|
|
|
|
|
|
|
|
|
['diamond',6,'shujinsan'],
|
|
|
|
|
['spade',2,'shujinsan'],
|
2017-02-02 07:34:28 +00:00
|
|
|
|
]
|
2017-01-31 14:08:34 +00:00
|
|
|
|
};
|