This commit is contained in:
parent
e92c57de32
commit
6a73b17398
|
@ -267,17 +267,16 @@ card.guozhan={
|
|||
},
|
||||
result:{
|
||||
player:function(player,target){
|
||||
if(target.hp==1) return 0;
|
||||
},
|
||||
target:function(player,target){
|
||||
if(target.hp==1) return 0;
|
||||
var att=ai.get.attitude(player,target);
|
||||
if(target.hp==1&&att<0) return 0;
|
||||
for(var i=0;i<game.players.length;i++){
|
||||
if(game.players[i]==target) continue;
|
||||
if(ai.get.attitude(player,game.players[i])<=ai.get.attitude(player,target)){
|
||||
if(ai.get.attitude(player,game.players[i])<att){
|
||||
var num=1;
|
||||
if(target==player.next||target==player.previous){
|
||||
return -1.5;
|
||||
num+=0.5;
|
||||
}
|
||||
return -1;
|
||||
return num;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
11
card/swd.js
11
card/swd.js
|
@ -116,7 +116,7 @@ card.swd={
|
|||
fullskin:true,
|
||||
ai:{
|
||||
basic:{
|
||||
equipValue:5
|
||||
equipValue:6
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -457,7 +457,7 @@ card.swd={
|
|||
subtype:'equip5',
|
||||
skills:['donghuangzhong'],
|
||||
ai:{
|
||||
equipValue:6
|
||||
equipValue:7
|
||||
}
|
||||
},
|
||||
xuanyuanjian:{
|
||||
|
@ -2435,7 +2435,7 @@ card.swd={
|
|||
filterTarget:true,
|
||||
filterCard:lib.filter.cardDiscardable,
|
||||
ai1:function(card){
|
||||
return 7-ai.get.useful(card);
|
||||
return 8-ai.get.useful(card);
|
||||
},
|
||||
ai2:function(target){
|
||||
return -ai.get.attitude(player,target);
|
||||
|
@ -2455,7 +2455,8 @@ card.swd={
|
|||
var target=event.target;
|
||||
var list=[];
|
||||
for(var i=0;i<lib.inpile.length;i++){
|
||||
if(get.type(lib.inpile[i])=='delay'&&!target.hasJudge(lib.inpile[i])){
|
||||
var info=lib.card[lib.inpile[i]];
|
||||
if(info.type=='delay'&&!info.cancel&&!target.hasJudge(lib.inpile[i])){
|
||||
list.push(lib.inpile[i]);
|
||||
}
|
||||
}
|
||||
|
@ -4553,7 +4554,7 @@ card.swd={
|
|||
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
|
||||
shouna:'收纳',
|
||||
shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次',
|
||||
donghuangzhong_info:'回合结束阶段,你可以弃置一张手牌,并选择一名角色将一张随机判定牌置入其判定区',
|
||||
donghuangzhong_info:'回合结束阶段,你可以弃置一张手牌,并选择一名角色将一张随机单体延时锦囊置入其判定区',
|
||||
xuanyuanjian_info:'锁定技,每当你即将造成一次伤害,你令此伤害加一并变为雷属性,此伤害结算后,你流失一点体力并摸一张牌。任何时候,若你体力值不超过2,则立即失去轩辕剑',
|
||||
pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌',
|
||||
haotianta_info:'锁定技,任意一名角色进行判定前,你观看牌堆顶的3张牌,并选择一张作为判定结果,此结果不可被更改,也不能触发技能。每回合最多发动一次',
|
||||
|
|
|
@ -354,6 +354,7 @@ window.characterRank={
|
|||
'hs_anomalus',
|
||||
'mifuren',
|
||||
'hanba',
|
||||
'pal_lixiaoyao',
|
||||
],
|
||||
b:[
|
||||
'caochun',
|
||||
|
@ -443,7 +444,6 @@ window.characterRank={
|
|||
'guohuai',
|
||||
'sunluban',
|
||||
'caozhang',
|
||||
'pal_lixiaoyao',
|
||||
'zhouyu',
|
||||
'guanyinping',
|
||||
'dingfeng',
|
||||
|
|
|
@ -38,6 +38,15 @@ character.xianjian={
|
|||
// pal_jiangcheng:['male','wei',4,[]],
|
||||
},
|
||||
skill:{
|
||||
yujian:{
|
||||
enable:'phaseUse',
|
||||
viewAs:{name:'wanjian'},
|
||||
filterCard:{name:'sha'},
|
||||
filter:function(event,player){
|
||||
return player.num('h','sha')>0;
|
||||
},
|
||||
usable:1
|
||||
},
|
||||
feng:{
|
||||
unique:true,
|
||||
init:function(player){
|
||||
|
@ -2142,7 +2151,7 @@ character.xianjian={
|
|||
threaten:1.5
|
||||
}
|
||||
},
|
||||
xiaoyao:{
|
||||
xiaoyao_old:{
|
||||
group:'feiying',
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
|
@ -2169,6 +2178,28 @@ character.xianjian={
|
|||
}
|
||||
}
|
||||
},
|
||||
xiaoyao:{
|
||||
trigger:{player:'phaseEnd'},
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
return player.num('he',{type:'equip'})>0;
|
||||
},
|
||||
content:function(){
|
||||
"step 0"
|
||||
var next=player.chooseToDiscard(get.prompt('xiaoyao'),'he',{type:'equip'});
|
||||
next.logSkill='xiaoyao';
|
||||
next.ai=function(card){
|
||||
if(player.hp==1) return 8-ai.get.value(card);
|
||||
if(player.isZhu) return 7-ai.get.value(card);
|
||||
if(player.hp==2) return 6-ai.get.value(card);
|
||||
return 5-ai.get.value(card);
|
||||
};
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.addTempSkill('qianxing',{player:'phaseBegin'});
|
||||
}
|
||||
},
|
||||
},
|
||||
tuoqiao:{
|
||||
filter:function(event,player){
|
||||
return game.players.length>3&&(event.player==player.next||event.player==player.previous);
|
||||
|
@ -2200,7 +2231,7 @@ character.xianjian={
|
|||
}
|
||||
}
|
||||
},
|
||||
yujian:{
|
||||
yujian_old:{
|
||||
enable:'phaseUse',
|
||||
usable:1,
|
||||
changeSeat:true,
|
||||
|
@ -2408,13 +2439,13 @@ character.xianjian={
|
|||
runxin:'润心',
|
||||
runxin_info:'每当你使用或打出一张红桃牌,你可以令一名角色回复一点体力',
|
||||
tannang:'探囊',
|
||||
tannang_info:'你可以将一张梅花手牌当顺手牵羊使用(每回合最多发动1次);你的顺手牵羊无距离限制',
|
||||
tannang_info:'出牌阶段限一次,你可以将一张梅花手牌当顺手牵羊使用;你的顺手牵羊无距离限制',
|
||||
tuoqiao:'脱壳',
|
||||
tuoqiao_info:'每当你成为身边角色的卡牌的目标,你可以将座位后移一位,然后取消之',
|
||||
xiaoyao:'逍遥',
|
||||
xiaoyao_info:'回合结束阶段,你可以弃置一张装备牌并获得潜行直到下一回合开始',
|
||||
yujian:'御剑',
|
||||
yujian_info:'出牌阶段,你可以弃置一张手牌并将你的座位移到任意位置,每阶段限一次',
|
||||
yujian_info:'出牌阶段限一次,你可以将一张杀当作万箭齐发使用',
|
||||
huimeng:'回梦',
|
||||
huimeng_info:'每当你回复一点体力,可以摸两张牌',
|
||||
tianshe:'天蛇',
|
||||
|
|
|
@ -11945,6 +11945,7 @@
|
|||
case 'nei':targets=game.filterPlayer(function(target){
|
||||
if(func&&!func(target)) return false;
|
||||
if(num>=3) return target.identity=='fan';
|
||||
if(game.players.length==2) return target!=player;
|
||||
return target.identity=='zhong'||target.identity=='mingzhong'||target.identity=='fan';
|
||||
});break;
|
||||
case 'fan':targets=game.filterPlayer(function(target){
|
||||
|
|
|
@ -14,6 +14,7 @@ window.noname_update={
|
|||
'character/xianjian.js',
|
||||
'character/shenhua.js',
|
||||
'card/swd.js',
|
||||
'card/guozhan.js',
|
||||
'mode/tafang.js',
|
||||
'layout/newlayout/global.css',
|
||||
'theme/woodden/style.css',
|
||||
|
|
Loading…
Reference in New Issue