noname/character/xiake.js

122 lines
4.0 KiB
JavaScript
Raw Normal View History

2015-10-09 11:29:32 +00:00
'use strict';
2015-10-08 06:16:37 +00:00
character.xiake={
character:{
2015-11-26 00:50:57 +00:00
// xk_dongfangweiming:['male','shu',4,[]],
xk_guyuexuan:['male','qun',4,['rouquan','gzhenji']],
2017-01-15 02:06:03 +00:00
xk_jinji:['male','shu',4,['zhongzhan','lianpo']],
2015-11-26 00:50:57 +00:00
// xk_shenxiangyun:['female','wei',3,['zhenjiu']],
xk_fujianhan:['male','qun',4,['zuijian','zitong']],
2015-10-08 06:16:37 +00:00
},
skill:{
2017-01-15 02:06:03 +00:00
zhongzhan:{
trigger:{source:'damageBegin'},
2016-09-20 05:06:35 +00:00
logTarget:'player',
2015-10-09 11:29:32 +00:00
check:function(event,player){
if(ai.get.damageEffect(event.player,player,player)>0&&
ai.get.attitude(player,event.player)<0){
return player.hp>event.player.hp&&player.hp>=2;
}
return false;
},
content:function(){
player.loseHp();
2017-01-15 02:06:03 +00:00
trigger.num++;
2015-10-09 11:29:32 +00:00
}
},
2015-10-08 06:16:37 +00:00
rouquan:{
mod:{
selectTarget:function(card,player,range){
if(card.name=='sha'&&!player.get('e','1')&&range[1]!=-1) range[1]=Infinity;
}
},
enable:'phaseUse',
position:'e',
filter:function(event,player){
return player.num('e')>0;
},
filterCard:true,
2017-02-06 03:27:52 +00:00
prompt:'将要重铸的牌置入弃牌堆并摸一张牌',
2015-10-08 06:16:37 +00:00
discard:false,
delay:0.5,
check:function(card,player){
var val=ai.get.equipValue(card);
var player=_status.event.player;
var cards=player.get('h',{subtype:get.subtype(card)});
for(var i=0;i<cards.length;i++){
if(ai.get.equipValue(cards[i])>=val){
return 1;
}
}
return 0;
},
prepare:function(cards,player){
player.$throw(cards,1000);
},
content:function(){
"step 0"
player.draw();
"step 1"
for(var i=0;i<cards.length;i++){
ui.discardPile.appendChild(cards[i]);
}
},
ai:{
order:9.5,
result:{
player:1
}
}
},
gzhenji:{
trigger:{source:'damageEnd'},
frequent:true,
filter:function(event,player){
return _status.currentPhase==player&&event.card&&event.card.name=='sha';
},
content:function(){
player.draw();
player.addTempSkill('gzhenji3','phaseAfter');
}
},
gzhenji3:{
mod:{
cardUsable:function(card,player,num){
if(card.name=='sha') return num+1;
}
},
},
zitong:{
trigger:{player:'useCard'},
frequent:true,
filter:function(event,player){
2016-01-07 09:29:44 +00:00
return _status.currentPhase==player&&get.cardCount(true,player)==3;
2015-10-08 06:16:37 +00:00
},
content:function(){
var card=get.cardPile('chuansongmen');
if(!card){
card=game.createCard('chuansongmen');
}
player.gain(card,'gain2');
},
ai:{
threaten:1.2
}
}
},
translate:{
xk_dongfangweiming:'东方未明',
xk_guyuexuan:'谷月轩',
xk_jinji:'荆棘',
xk_shenxiangyun:'沈湘芸',
xk_fujianhan:'傅剑寒',
2017-01-15 02:06:03 +00:00
zhongzhan:'重斩',
zhongzhan_info:'每当你即将造成伤害,你可流失一点体力令伤害+1',
2015-10-08 06:16:37 +00:00
gzhenji:'震击',
gzhenji_info:'你使用杀造成伤害后,可以摸一张牌,并且本回合内可以额外使用一张杀',
rouquan:'柔拳',
rouquan_info:'你可以重铸装备区内的牌;当你没有武器牌时,你的杀可以指定任意个目标',
2016-01-07 09:29:44 +00:00
zitong:'通悟',
zitong_info:'当你于自己的回合内使用第三张牌时,你可以将一张传送门置于你的手牌',
2015-10-08 06:16:37 +00:00
},
}