This commit is contained in:
parent
8ba54f0bd9
commit
2340e2f94a
70
card/swd.js
70
card/swd.js
|
@ -3,6 +3,70 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
return {
|
||||
name:'swd',
|
||||
card:{
|
||||
|
||||
liuxinghuoyu:{
|
||||
fullskin:true,
|
||||
type:'trick',
|
||||
enable:true,
|
||||
filterTarget:true,
|
||||
cardcolor:'red',
|
||||
cardnature:'fire',
|
||||
content:function(){
|
||||
"step 0"
|
||||
if(target.countCards('he')<2){
|
||||
event.directfalse=true;
|
||||
}
|
||||
else{
|
||||
target.chooseToDiscard('he',2).ai=function(card){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(get.damageEffect(target,player,target,'fire')>=0) return 0;
|
||||
if(player.hasSkillTag('notricksource')) return 0;
|
||||
if(target.hasSkillTag('notrick')) return 0;
|
||||
if(card.name=='tao') return 0;
|
||||
if(target.hp==1&&card.name=='jiu') return 0;
|
||||
if(target.hp==1&&get.type(card)!='basic'){
|
||||
return 10-get.value(card);
|
||||
}
|
||||
return 8-get.value(card);
|
||||
};
|
||||
}
|
||||
"step 1"
|
||||
if(event.directfalse||!result.bool){
|
||||
target.damage('fire');
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
basic:{
|
||||
order:4,
|
||||
value:7,
|
||||
useful:2,
|
||||
},
|
||||
result:{
|
||||
target:function(player,target){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(get.damageEffect(target,player,player)<0&&get.attitude(player,target)>0){
|
||||
return -2;
|
||||
}
|
||||
var nh=target.countCards('he');
|
||||
if(target==player) nh--;
|
||||
switch(nh){
|
||||
case 0:case 1:return -2;
|
||||
case 2:return -1.5;
|
||||
case 3:return -1;
|
||||
default:return -0.7;
|
||||
}
|
||||
}
|
||||
},
|
||||
tag:{
|
||||
damage:1,
|
||||
fireDamage:1,
|
||||
natureDamage:1,
|
||||
discard:1,
|
||||
loseCard:1,
|
||||
position:'he',
|
||||
}
|
||||
}
|
||||
},
|
||||
dujian:{
|
||||
fullskin:true,
|
||||
type:'basic',
|
||||
|
@ -4665,6 +4729,8 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
'护甲:和体力类似,每点护甲可抵挡一点伤害,但不影响手牌上限'
|
||||
},
|
||||
translate:{
|
||||
liuxinghuoyu:'流星火羽',
|
||||
liuxinghuoyu_info:'出牌阶段,对一名角色使用,令目标弃置2张牌,或受到一点火焰伤害',
|
||||
g_yuchan_equip:'玉蝉',
|
||||
yuchanqian_duanzao:'玉蝉',
|
||||
yuchanqian_equip1_info:'出牌阶段限一次,你可以弃置任意张基本牌并摸等量的牌',
|
||||
|
@ -5033,6 +5099,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
lianyaohu_info:'出牌阶段各限一次,你可以选择一项:1.弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶;2.弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
|
||||
},
|
||||
list:[
|
||||
['diamond',3,'liuxinghuoyu','fire'],
|
||||
['heart',6,'liuxinghuoyu','fire'],
|
||||
['heart',9,'liuxinghuoyu','fire'],
|
||||
|
||||
['spade',1,'baihupifeng'],
|
||||
['club',1,'fengxueren'],
|
||||
['diamond',1,'langeguaiyi'],
|
||||
|
|
|
@ -877,69 +877,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
}
|
||||
},
|
||||
liuxinghuoyu:{
|
||||
fullskin:true,
|
||||
type:'trick',
|
||||
enable:true,
|
||||
filterTarget:true,
|
||||
cardcolor:'red',
|
||||
cardnature:'fire',
|
||||
content:function(){
|
||||
"step 0"
|
||||
if(target.countCards('he')<2){
|
||||
event.directfalse=true;
|
||||
}
|
||||
else{
|
||||
target.chooseToDiscard('he',2).ai=function(card){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(get.damageEffect(target,player,target,'fire')>=0) return 0;
|
||||
if(player.hasSkillTag('notricksource')) return 0;
|
||||
if(target.hasSkillTag('notrick')) return 0;
|
||||
if(card.name=='tao') return 0;
|
||||
if(target.hp==1&&card.name=='jiu') return 0;
|
||||
if(target.hp==1&&get.type(card)!='basic'){
|
||||
return 10-get.value(card);
|
||||
}
|
||||
return 8-get.value(card);
|
||||
};
|
||||
}
|
||||
"step 1"
|
||||
if(event.directfalse||!result.bool){
|
||||
target.damage('fire');
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
basic:{
|
||||
order:4,
|
||||
value:7,
|
||||
useful:2,
|
||||
},
|
||||
result:{
|
||||
target:function(player,target){
|
||||
if(target.hasSkillTag('nofire')) return 0;
|
||||
if(get.damageEffect(target,player,player)<0&&get.attitude(player,target)>0){
|
||||
return -2;
|
||||
}
|
||||
var nh=target.countCards('he');
|
||||
if(target==player) nh--;
|
||||
switch(nh){
|
||||
case 0:case 1:return -2;
|
||||
case 2:return -1.5;
|
||||
case 3:return -1;
|
||||
default:return -0.7;
|
||||
}
|
||||
}
|
||||
},
|
||||
tag:{
|
||||
damage:1,
|
||||
fireDamage:1,
|
||||
natureDamage:1,
|
||||
discard:1,
|
||||
loseCard:1,
|
||||
position:'he',
|
||||
}
|
||||
}
|
||||
},
|
||||
qiankundai:{
|
||||
fullskin:true,
|
||||
type:'equip',
|
||||
|
@ -1113,8 +1050,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
huoshan_info:'出牌阶段,对自己使用。若判定结果为红桃2~9,则目标角色受到2点火焰伤害,距离目标1以内的其他角色受到1点火焰伤害。若判定不为红桃2~9,将之移动到下家的判定区里。',
|
||||
hongshui:'洪水',
|
||||
hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置3张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去一点体力,X至少为1',
|
||||
liuxinghuoyu:'流星火羽',
|
||||
liuxinghuoyu_info:'出牌阶段,对一名角色使用,令目标弃置2张牌,或受到一点火焰伤害',
|
||||
qiankundai:'乾坤袋',
|
||||
qiankundai_info:'你的手牌上限+1。当你失去该装备时,你摸一张牌。',
|
||||
hufu:'虎符',
|
||||
|
@ -1130,9 +1065,6 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
['club',1,'qiankundai'],
|
||||
['heart',6,'huoshan','fire'],
|
||||
['club',7,'hongshui'],
|
||||
['diamond',3,'liuxinghuoyu','fire'],
|
||||
['heart',6,'liuxinghuoyu','fire'],
|
||||
['heart',9,'liuxinghuoyu','fire'],
|
||||
['heart',3,'yihuajiemu'],
|
||||
["diamond",3,'guohe'],
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
}
|
||||
},
|
||||
group:'junchi_gold'
|
||||
// group:'junchi_gold'
|
||||
},
|
||||
junchi_old:{
|
||||
trigger:{global:'shaAfter'},
|
||||
|
@ -1469,7 +1469,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
gw_aokeweisite:'奥克维斯特',
|
||||
gw_kaxier:'卡西尔',
|
||||
gw_luobo:'萝卜',
|
||||
gw_mieren:'米尔恩',
|
||||
gw_mieren:'尔米恩',
|
||||
gw_sanhanya:'三寒鸦',
|
||||
gw_shanhu:'珊瑚',
|
||||
gw_zhangyujushou:'章鱼巨兽',
|
||||
|
@ -1484,7 +1484,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
gwshenyu:'神愈',
|
||||
gwshenyu_info:'准备阶段,你可以令一名角色选择一项:回复一点体力,或从弃牌堆中获得一张非金法术牌(直到洗牌前该牌不能再以此法获得)',
|
||||
junchi:'骏驰',
|
||||
junchi_info:'每当一名其他角色使用一张杀,若目标不是你,你可以对杀的目标使用一张牌,并摸一张牌;每当一名其他角色使用一张金卡,你可以在此回合结束后获得一个额外回合',
|
||||
junchi_info:'每当一名其他角色使用一张杀,若目标不是你,你可以对杀的目标使用一张牌,并摸一张牌',
|
||||
junchi_old_info:'当一名其他角色使用杀对一个目标结算后,该角色可以交给你一张牌,然后你可以对杀的目标使用一张牌,若如此做,你回复一点体力,杀的使用者摸一张牌',
|
||||
gw_dudayuanshuai1:'杜达元帅',
|
||||
gw_dudayuanshuai1_info:'当你成为其他角色使用牌的目标时,你可以使用此牌取消之,然后获得对你使用的牌',
|
||||
|
|
Loading…
Reference in New Issue