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',
|
|
|
|
|
},
|
|
|
|
|
mutoumianju:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip2',
|
|
|
|
|
},
|
|
|
|
|
yuheng:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
},
|
|
|
|
|
shujinsan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
},
|
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:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
|
|
|
|
jinlianzhu:{
|
|
|
|
|
type:'jiguan',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullskin:true,
|
|
|
|
|
},
|
2017-01-31 14:08:34 +00:00
|
|
|
|
},
|
|
|
|
|
skill:{},
|
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:'金莲珠',
|
|
|
|
|
// shihuifen:'石灰粉',
|
|
|
|
|
// shihuifen_info:'石灰粉',
|
|
|
|
|
// 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:'紫阳丹',
|
|
|
|
|
// yuheng:'玉衡',
|
|
|
|
|
// yuheng_info:'回合结束阶段,若场你的体力值不是全场最少,你失去一点体力并令玉衡获得一点力量;回合开始阶段,玉衡每有一点力量,你便可以获得一名其他角色的一张牌',
|
|
|
|
|
// shujinsan:'舒筋散',
|
|
|
|
|
// shujinsan_info:'对任意角色使用,目标可弃置任意张牌,并摸等量的牌',
|
|
|
|
|
// mutoumianju:'木头面具',
|
|
|
|
|
// mutoumianju_info:'装备后视为拥有技能龙胆',
|
|
|
|
|
// heilonglinpian:'黑龙鳞片',
|
|
|
|
|
// 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-01-31 14:08:34 +00:00
|
|
|
|
};
|