This commit is contained in:
parent
50cb346a01
commit
c554b60b5e
|
@ -249,7 +249,7 @@ card.guozhan={
|
|||
ai:{
|
||||
order:10,
|
||||
value:4,
|
||||
useful:2,
|
||||
useful:[2,1],
|
||||
wuxie:function(){
|
||||
return 0;
|
||||
},
|
||||
|
|
68
card/swd.js
68
card/swd.js
|
@ -393,8 +393,9 @@ card.swd={
|
|||
target2.addExpose(0.2);
|
||||
target.useCard({name:'sha'},target2);
|
||||
}
|
||||
player.addSkill('zhiluxiaohu');
|
||||
'step 1'
|
||||
target.draw();
|
||||
player.removeSkill('zhiluxiaohu');
|
||||
},
|
||||
ai:{
|
||||
value:6,
|
||||
|
@ -1706,29 +1707,32 @@ card.swd={
|
|||
},
|
||||
zhufangshenshi:{
|
||||
fullskin:true,
|
||||
chongzhu:true,
|
||||
type:'trick',
|
||||
enable:function(){
|
||||
return game.countPlayer()>2;
|
||||
},
|
||||
filterTarget:function(card,player,target){
|
||||
return player.next==target||player.previous==target;
|
||||
},
|
||||
enable:true,
|
||||
filterTarget:true,
|
||||
content:function(){
|
||||
game.swapSeat(player,target);
|
||||
player.storage.zhufangshenshi=target;
|
||||
player.addTempSkill('zhufangshenshi','phaseAfter');
|
||||
},
|
||||
ai:{
|
||||
value:4,
|
||||
wuxie:function(){
|
||||
return 0;
|
||||
},
|
||||
useful:[2,1],
|
||||
basic:{
|
||||
order:7,
|
||||
},
|
||||
result:{
|
||||
target:function(player,target){
|
||||
if(player.next==target) return -1;
|
||||
if(player.previous==target) return 1;
|
||||
player:function(player,target){
|
||||
if(ai.get.attitude(player,target)<0){
|
||||
if(get.distance(player,target)>1) return 1;
|
||||
return 0.6;
|
||||
}
|
||||
return 0.3;
|
||||
}
|
||||
}
|
||||
},
|
||||
mode:['identity','guozhan'],
|
||||
},
|
||||
jingleishan:{
|
||||
fullskin:true,
|
||||
|
@ -1953,6 +1957,40 @@ card.swd={
|
|||
},
|
||||
},
|
||||
skill:{
|
||||
zhiluxiaohu:{
|
||||
trigger:{source:'damageAfter'},
|
||||
forced:true,
|
||||
popup:false,
|
||||
filter:function(event,player){
|
||||
return event.card&&event.card.name=='sha'&&event.getParent(3).name=='zhiluxiaohu';
|
||||
},
|
||||
content:function(){
|
||||
player.draw();
|
||||
}
|
||||
},
|
||||
zhufangshenshi:{
|
||||
mod:{
|
||||
targetInRange:function(card,player,target,now){
|
||||
if(player.storage.zhufangshenshi==target) return true;
|
||||
},
|
||||
},
|
||||
mark:true,
|
||||
intro:{
|
||||
content:'player'
|
||||
},
|
||||
onremove:true,
|
||||
},
|
||||
_zhufangshenshi:{
|
||||
trigger:{player:'useCardAfter'},
|
||||
forced:true,
|
||||
popup:false,
|
||||
filter:function(event,player){
|
||||
return event.card.name=='zhufangshenshi';
|
||||
},
|
||||
content:function(){
|
||||
player.draw();
|
||||
}
|
||||
},
|
||||
huanpodan_skill:{
|
||||
mark:true,
|
||||
intro:{
|
||||
|
@ -4701,7 +4739,7 @@ card.swd={
|
|||
shuchui:'鼠槌',
|
||||
shuchui_info:'出牌阶段限一次,你可以指定一名攻击范围内的角色,依次将手牌中的至多3张杀对该角色使用,若杀造成了伤害,你摸一张牌',
|
||||
zhiluxiaohu:'指路小狐',
|
||||
zhiluxiaohu_info:'出牌阶段对自己使用,视为对一名随机敌方角色使用一张杀,然后摸一张牌',
|
||||
zhiluxiaohu_info:'出牌阶段对自己使用,视为对一名随机敌方角色使用一张杀,若此杀造成伤害,你摸一张牌',
|
||||
xuejibingbao:'雪肌冰鲍',
|
||||
xuejibingbao_info:'出牌阶段对一名角色使用,该角色摸牌阶段摸牌数+1,持续2个回合',
|
||||
gouhunluo:'勾魂锣',
|
||||
|
@ -4938,7 +4976,7 @@ card.swd={
|
|||
xixue:'吸血',
|
||||
xixue_info:'锁定技,每当你使用杀造成一点伤害,你回复一点体力',
|
||||
zhufangshenshi:'祠符',
|
||||
zhufangshenshi_info:'出牌阶段,对一名相邻角色使用,与其交换位置',
|
||||
zhufangshenshi_info:'出牌阶段,对一名其他角色使用,本回合内对其使用卡牌无视距离,结算后摸一张牌',
|
||||
jingleishan:'惊雷闪',
|
||||
jingleishan_info:'出牌阶段,对所有其他角色使用。每名目标角色需打出一张【杀】,否则受到1点雷电伤害。',
|
||||
chiyuxi:'炽羽袭',
|
||||
|
|
|
@ -843,17 +843,24 @@ character.yijiang={
|
|||
list[i]=['锦囊','',list[i]];
|
||||
}
|
||||
}
|
||||
var att=ai.get.attitude(event.target,player);
|
||||
event.target.chooseButton(['矫诏',[list,'vcard']],true).set('ai',function(button){
|
||||
var att=_status.event.att;
|
||||
if(att<=0){
|
||||
return button.link=='shan'?1:0;
|
||||
var choice;
|
||||
if(ai.get.attitude(event.target,player)<=0){
|
||||
choice='shan';
|
||||
}
|
||||
else{
|
||||
if(!player.storage.jiaozhao1){
|
||||
var nh=player.num('h');
|
||||
if(nh>=5){
|
||||
choice='jiu';
|
||||
}
|
||||
else if(nh<=2){
|
||||
choice='sha';
|
||||
}
|
||||
else{
|
||||
choice=Math.random()<0.5?'sha':'jiu';
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(!_status.event.trick){
|
||||
return button.link=='sha'?1:0;
|
||||
}
|
||||
var player=_status.event.player;
|
||||
var recover=0,lose=1,players=game.filterPlayer();
|
||||
for(var i=0;i<players.length;i++){
|
||||
if(!players[i].isOut()&&players[i]!=player){
|
||||
|
@ -885,15 +892,25 @@ character.yijiang={
|
|||
}
|
||||
}
|
||||
}
|
||||
if(lose>recover&&lose>0) return (button.link[2]=='nanman')?1:-1;
|
||||
if(lose<recover&&recover>0) return (button.link[2]=='taoyuan')?1:-1;
|
||||
return (button.link[2]=='shunshou')?1:-1;
|
||||
if(lose>recover&&lose>0){
|
||||
choice=Math.random()<0.7?'nanman':'wanjian';
|
||||
}
|
||||
else if(lose<recover&&recover>0){
|
||||
choice='taoyuan';
|
||||
}
|
||||
else{
|
||||
choice=Math.random()<0.5?'wuzhong':'shunshou';
|
||||
}
|
||||
}
|
||||
}).set('att',att).set('trick',player.storage.jiaozhao1);
|
||||
}
|
||||
event.target.chooseButton(['矫诏',[list,'vcard']],true).set('ai',function(button){
|
||||
return button.link[2]==_status.event.choice?1:0;
|
||||
}).set('choice',choice);
|
||||
'step 3'
|
||||
event.target.showCards(game.createCard(result.links[0]),get.translation(event.target)+'声明了'+get.translation(result.links[0][2]));
|
||||
var chosen=result.links[0][2];
|
||||
event.target.showCards(game.createCard({name:chosen,suit:cards[0].suit,number:cards[0].number}),get.translation(event.target)+'声明了'+get.translation(chosen));
|
||||
player.storage.jiaozhao=cards[0];
|
||||
player.storage.jiaozhao_card=result.links[0][2];
|
||||
player.storage.jiaozhao_card=chosen;
|
||||
game.broadcastAll(function(name){
|
||||
lib.skill.jiaozhao2.viewAs={name:name};
|
||||
},result.links[0][2]);
|
||||
|
|
Loading…
Reference in New Issue