This commit is contained in:
libccy 2017-02-02 15:34:28 +08:00
parent 9a699089df
commit 77f48bed5f
6 changed files with 246 additions and 27 deletions

View File

@ -141,12 +141,148 @@ card.gujian={
fullskin:true, fullskin:true,
type:'basic', type:'basic',
}, },
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'){
if(rand) num-=5;
}
else{
if(!rand) num-=5;
}
return num-ai.get.value(card);
};
"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
}
}
}
}, },
skill:{}, skill:{},
cardType:{ cardType:{
food:0.3 food:0.3
}, },
translate:{ translate:{
bingpotong:'冰魄筒',
bingpotong_info:'出牌阶段,对一名有手牌的角色使用,你与其同时展示一张手牌,若颜色相同,你弃置展示的牌,目标流失一点体力;若颜色不同,目标弃置展示的牌',
feibiao:'飞镖',
feibiao_info:'出牌阶段对一名距离1以外的角色使用令其弃置一张黑色手牌或流失一点体力',
liuxiaxianniang:'流霞仙酿', liuxiaxianniang:'流霞仙酿',
liuxiaxianniang_info:'流霞仙酿', liuxiaxianniang_info:'流霞仙酿',
yunvyuanshen:'玉女元参', yunvyuanshen:'玉女元参',
@ -175,5 +311,14 @@ card.gujian={
yuanbaorou:'元宝肉', yuanbaorou:'元宝肉',
molicha:'茉莉茶', molicha:'茉莉茶',
mapodoufu:'麻婆豆腐', mapodoufu:'麻婆豆腐',
} },
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'],
]
}; };

View File

@ -367,18 +367,33 @@ card.swd={
yuchankan:{ yuchankan:{
fullskin:true, fullskin:true,
type:'jiqi', type:'jiqi',
autoViewAs:'xiangyuye', autoViewAs:'shenmiguo',
addinfo:'', addinfo:'',
ai:{ ai:{
order:1,
useful:4,
value:6, value:6,
useful:1 result:{
player:function(){
var cardname=_status.event.cardname;
if(cardname=='tiesuo') return 0;
if(cardname=='jiu') return 0;
if(cardname=='tianxianjiu') return 0;
if(cardname=='toulianghuanzhu') return 0;
if(cardname=='shijieshu') return 0;
if(cardname=='xietianzi') return 0;
if(cardname=='huogong') return 0;
if(cardname=='shandianjian') return 0;
return 1;
}
},
} }
}, },
yuchanli:{ yuchanli:{
fullskin:true, fullskin:true,
type:'jiqi', type:'jiqi',
autoViewAs:'dujian', autoViewAs:'tianxianjiu',
addinfo:'箭', addinfo:'',
ai:{ ai:{
value:6, value:6,
useful:1 useful:1
@ -1517,7 +1532,7 @@ card.swd={
} }
} }
}, },
huanpodan:{ huanpodan_old:{
type:'basic', type:'basic',
enable:function(){return game.dead.length>0}, enable:function(){return game.dead.length>0},
notarget:true, notarget:true,
@ -1647,6 +1662,37 @@ card.swd={
}, },
} }
}, },
huanpodan:{
fullskin:true,
type:'basic',
enable:true,
logv:false,
filterTarget:function(card,player,target){
return !target.hasSkill('huanpodan_skill');
},
content:function(){
target.addSkill('huanpodan_skill');
if(cards&&cards.length){
card=cards[0];
}
if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){
card.clone.moveDelete(target);
game.addVideo('gain2',target,get.cardsInfo([card]));
}
},
ai:{
basic:{
value:8,
useful:4,
},
order:2,
result:{
target:function(player,target){
return 1/Math.sqrt(1+target.hp);
},
},
}
},
langeguaiyi:{ langeguaiyi:{
fullskin:true, fullskin:true,
type:'equip', type:'equip',
@ -1963,12 +2009,32 @@ card.swd={
}, },
}, },
skill:{ skill:{
huanpodan_skill:{
mark:true,
intro:{
content:'防止一次死亡改为弃置所有牌将体力值变为1并摸一张牌'
},
trigger:{player:'dieBefore'},
forced:true,
content:function(){
'step 0'
trigger.untrigger();
trigger.finish();
player.discard(player.get('he'));
player.removeSkill('huanpodan_skill');
'step 1'
player.changeHp(1-player.hp);
'step 2'
player.draw();
}
},
dujian2:{}, dujian2:{},
_yuchan_swap:{ _yuchan_swap:{
trigger:{player:'useCardAfter'}, trigger:{player:'useCardAfter'},
forced:true, forced:true,
popup:false, popup:false,
silent:true, silent:true,
priority:-1,
content:function(){ content:function(){
var hs=player.get('h'); var hs=player.get('h');
var list=['yuchanqian','yuchankun','yuchanzhen','yuchanxun','yuchangen','yuchanli','yuchankan','yuchandui']; var list=['yuchanqian','yuchankun','yuchanzhen','yuchanxun','yuchangen','yuchanli','yuchankan','yuchandui'];
@ -2105,6 +2171,7 @@ card.swd={
if(event.parent.parent.name!='phaseUse') return false; if(event.parent.parent.name!='phaseUse') return false;
if(!event.targets||!event.card) return false; if(!event.targets||!event.card) return false;
if(event.card.name=='shenmiguo') return false; if(event.card.name=='shenmiguo') return false;
if(event.card.name=='yuchankan') return false;
if(player.hasSkill('shenmiguo2')) return false; if(player.hasSkill('shenmiguo2')) return false;
var type=get.type(event.card); var type=get.type(event.card);
if(type!='basic'&&type!='trick') return false; if(type!='basic'&&type!='trick') return false;
@ -2116,10 +2183,12 @@ card.swd={
} }
} }
if(player.num('h','shenmiguo')) return true; if(player.num('h','shenmiguo')) return true;
if(player.num('h','yuchankan')) return true;
var mn=player.get('e','5'); var mn=player.get('e','5');
if(mn&&mn.name=='muniu'&&mn.cards&&mn.cards.length){ if(mn&&mn.name=='muniu'&&mn.cards&&mn.cards.length){
for(var i=0;i<mn.cards.length;i++){ for(var i=0;i<mn.cards.length;i++){
if(mn.cards[i].name=='shenmiguo') return true; if(mn.cards[i].name=='shenmiguo') return true;
if(mn.cards[i].name=='yuchankan') return true;
} }
} }
return false; return false;
@ -2129,7 +2198,7 @@ card.swd={
var card=game.createCard(trigger.card.name,trigger.card.suit,trigger.card.number,trigger.card.nature); var card=game.createCard(trigger.card.name,trigger.card.suit,trigger.card.number,trigger.card.nature);
player.storage.shenmiguo=[card,trigger.targets]; player.storage.shenmiguo=[card,trigger.targets];
player.chooseToUse('是否使用神秘果?',function(card,player){ player.chooseToUse('是否使用神秘果?',function(card,player){
if(card.name!='shenmiguo') return false; if(card.name!='shenmiguo'&&card.name!='yuchankan') return false;
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s')); var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
if(mod!='unchanged') return mod; if(mod!='unchanged') return mod;
return true; return true;
@ -4689,9 +4758,9 @@ card.swd={
yuchanxun:'巽玉蝉', yuchanxun:'巽玉蝉',
yuchanxun_info:'在你行动时可当作桃使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态', yuchanxun_info:'在你行动时可当作桃使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
yuchankan:'坎玉蝉', yuchankan:'坎玉蝉',
yuchankan_info:'在你行动时可当作翔羽叶使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态', yuchankan_info:'在你行动时可当作神秘果使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
yuchanli:'离玉蝉', yuchanli:'离玉蝉',
yuchanli_info:'在你行动时可当作毒箭使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态', yuchanli_info:'在你行动时可当作天仙酒使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
yuchangen:'艮玉蝉', yuchangen:'艮玉蝉',
yuchangen_info:'在你行动时可当作还魄丹使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态', yuchangen_info:'在你行动时可当作还魄丹使用;可用于煅造装备;在你使用一张牌后,此牌会随机切换形态',
yuchandui:'兑玉蝉', yuchandui:'兑玉蝉',
@ -4876,11 +4945,14 @@ card.swd={
tianxianjiu:'天仙酒', tianxianjiu:'天仙酒',
tianxianjiu_bg:'仙', tianxianjiu_bg:'仙',
tianxianjiu_info:'出牌阶段对自己使用你使用的下一张杀造成伤害后可以摸两张牌濒死阶段对自己使用回复1点体力', tianxianjiu_info:'出牌阶段对自己使用你使用的下一张杀造成伤害后可以摸两张牌濒死阶段对自己使用回复1点体力',
xiangyuye:'翔羽叶', // xiangyuye:'翔羽叶',
xiangyuye_info:'出牌阶段,对一名攻击范围外的角色使用,令其弃置一张黑色手牌或流失一点体力', // xiangyuye_info:'出牌阶段,对一名攻击范围外的角色使用,令其弃置一张黑色手牌或流失一点体力',
huanpodan:'还魄丹', huanpodan:'还魄丹',
huanpodan_bg:'魄', huanpodan_bg:'魄',
huanpodan_info:'出牌阶段对一名已死亡角色使用令其复活将体力值变为1并摸一张牌', huanpodan_info:'出牌阶段对一名角色使用在目标即将死亡时防止其死亡改为令其弃置所有牌将体力值回复至1并摸一张牌',
huanpodan_skill:'还魄丹',
huanpodan_skill_bg:'丹',
huanpodan_skill_info:'防止一次死亡改为弃置所有牌将体力值变为1并摸一张牌',
ximohu:'吸魔壶', ximohu:'吸魔壶',
ximohu_bg:'魔', ximohu_bg:'魔',
// ximohu_info:'锁定技,你将即将受到的雷属性伤害转化为你的体力值', // ximohu_info:'锁定技,你将即将受到的雷属性伤害转化为你的体力值',
@ -4979,8 +5051,8 @@ card.swd={
nvwashi_bg:'石', nvwashi_bg:'石',
kongxin:'控心', kongxin:'控心',
lianhua:'炼化', lianhua:'炼化',
dujian:'毒箭', // dujian:'毒箭',
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力', // dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌', lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
shouna:'收纳', shouna:'收纳',
shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶', shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶',
@ -5004,7 +5076,7 @@ card.swd={
['diamond',2,'xiayuncailing'], ['diamond',2,'xiayuncailing'],
// ['heart',2,'pantao'], // ['heart',2,'pantao'],
// ['club',2,'huanpodan'], ['heart',2,'huanpodan'],
['club',3,'caoyao'], ['club',3,'caoyao'],
['diamond',3,'chilongya','fire'], ['diamond',3,'chilongya','fire'],
@ -5026,11 +5098,11 @@ card.swd={
['spade',7,'guilingzhitao'], ['spade',7,'guilingzhitao'],
['spade',8,'zhufangshenshi'], ['spade',8,'zhufangshenshi'],
['club',8,'xiangyuye','poison'], // ['club',8,'xiangyuye','poison'],
['spade',9,'yangpijuan'], ['spade',9,'yangpijuan'],
['club',9,'guiyoujie'], ['club',9,'guiyoujie'],
['diamond',9,'xiangyuye','poison'], // ['diamond',9,'xiangyuye','poison'],
// ['diamond',9,'tianxianjiu'], // ['diamond',9,'tianxianjiu'],
['heart',9,'tianxianjiu'], ['heart',9,'tianxianjiu'],
@ -5043,7 +5115,7 @@ card.swd={
//['diamond',10,'xiangyuye','poison'], //['diamond',10,'xiangyuye','poison'],
['club',7,'yangpijuan'], ['club',7,'yangpijuan'],
['spade',11,'xiangyuye','poison'], // ['spade',11,'xiangyuye','poison'],
['spade',12,'guiyanfadao','poison'], ['spade',12,'guiyanfadao','poison'],
@ -5133,8 +5205,8 @@ card.swd={
['diamond',7,'yuchangen'], ['diamond',7,'yuchangen'],
['heart',8,'yuchandui'], ['heart',8,'yuchandui'],
['spade',3,'dujian','poison'], // ['spade',3,'dujian','poison'],
['club',11,'dujian','poison'], // ['club',11,'dujian','poison'],
['club',12,'dujian','poison'], // ['club',12,'dujian','poison'],
], ],
} }

View File

@ -4005,7 +4005,7 @@ character.swd={
filterCard:function(card){ filterCard:function(card){
return get.color(card)=='black'; return get.color(card)=='black';
}, },
viewAs:{name:'dujian'}, viewAs:{name:'bingpotong'},
position:'he', position:'he',
filter:function(event,player){ filter:function(event,player){
return player.num('h',{color:'black'})>0; return player.num('h',{color:'black'})>0;
@ -4013,7 +4013,7 @@ character.swd={
viewAsFilter:function(player){ viewAsFilter:function(player){
if(!player.num('he',{color:'black'})) return false; if(!player.num('he',{color:'black'})) return false;
}, },
prompt:'将一张黑色牌当作毒箭使用', prompt:'将一张黑色牌当作冰魄筒使用',
check:function(card){return 5-ai.get.value(card)}, check:function(card){return 5-ai.get.value(card)},
ai:{ ai:{
threaten:1.1 threaten:1.1
@ -8878,7 +8878,7 @@ character.swd={
shengshou:'圣手', shengshou:'圣手',
huanjian:'幻箭', huanjian:'幻箭',
yuhuo:'浴火', yuhuo:'浴火',
huanjian_info:'你可以将一张黑色牌当作毒箭使用', huanjian_info:'你可以将一张黑色牌当作冰魄筒使用',
shengshou_info:'你可以将一张黑色手牌当作草药使用', shengshou_info:'你可以将一张黑色手牌当作草药使用',
susheng_info:'在任意一名角色即将死亡时你可以弃置一张手牌防止其死亡并将其体力回复至1每回合限发动一次', susheng_info:'在任意一名角色即将死亡时你可以弃置一张手牌防止其死亡并将其体力回复至1每回合限发动一次',
zhanlu_info:'出牌阶段,你可以弃置一张黑桃牌令至多3名角色各回复一点体力', zhanlu_info:'出牌阶段,你可以弃置一张黑桃牌令至多3名角色各回复一点体力',

View File

@ -13,6 +13,7 @@ window.noname_asset_list=[
'image/card/baishouzhihu.png', 'image/card/baishouzhihu.png',
'image/card/baiyin.png', 'image/card/baiyin.png',
'image/card/bingliang.png', 'image/card/bingliang.png',
'image/card/bingpotong.png',
'image/card/cangchizhibi.png', 'image/card/cangchizhibi.png',
'image/card/caomu.png', 'image/card/caomu.png',
'image/card/caoyao.png', 'image/card/caoyao.png',
@ -29,9 +30,10 @@ window.noname_asset_list=[
'image/card/diaohulishan.png', 'image/card/diaohulishan.png',
'image/card/donghuangzhong.png', 'image/card/donghuangzhong.png',
'image/card/du.png', 'image/card/du.png',
'image/card/dujian.png', // 'image/card/dujian.png',
'image/card/dunpaigedang.png', 'image/card/dunpaigedang.png',
'image/card/fangtian.png', 'image/card/fangtian.png',
'image/card/feibiao.png',
'image/card/fengxueren.png', 'image/card/fengxueren.png',
'image/card/fengyinzhidan.png', 'image/card/fengyinzhidan.png',
'image/card/fudichouxin.png', 'image/card/fudichouxin.png',
@ -178,7 +180,7 @@ window.noname_asset_list=[
'image/card/wuxingpan.png', 'image/card/wuxingpan.png',
'image/card/wuzhong.png', 'image/card/wuzhong.png',
'image/card/xiajiao.png', 'image/card/xiajiao.png',
'image/card/xiangyuye.png', // 'image/card/xiangyuye.png',
'image/card/xianluhui.png', 'image/card/xianluhui.png',
'image/card/xiayuncailing.png', 'image/card/xiayuncailing.png',
'image/card/xietianzi.png', 'image/card/xietianzi.png',

BIN
image/card/bingpotong.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
image/card/feibiao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB