|
@ -25,6 +25,9 @@ card.extra={
|
|||
}
|
||||
}
|
||||
else{
|
||||
if(cards&&cards.length){
|
||||
card=cards[0];
|
||||
}
|
||||
game.broadcastAll(function(target,card,gain2){
|
||||
target.addSkill('jiu');
|
||||
if(!target.node.jiu&&lib.config.jiu_effect){
|
||||
|
|
|
@ -111,12 +111,39 @@ card.gujian={
|
|||
selectTarget:-1,
|
||||
modTarget:true,
|
||||
},
|
||||
heilonglinpian:{
|
||||
fullskin:true,
|
||||
type:'trick',
|
||||
},
|
||||
mutoumianju:{
|
||||
fullskin:true,
|
||||
type:'equip',
|
||||
subtype:'equip2',
|
||||
},
|
||||
yuheng:{
|
||||
fullskin:true,
|
||||
type:'equip',
|
||||
subtype:'equip5',
|
||||
},
|
||||
shujinsan:{
|
||||
fullskin:true,
|
||||
type:'basic',
|
||||
},
|
||||
},
|
||||
skill:{},
|
||||
cardType:{
|
||||
food:0.3
|
||||
},
|
||||
translate:{
|
||||
yuheng:'玉衡',
|
||||
yuheng_info:'回合结束阶段,若场你的体力值不是全场最少,你失去一点体力并令玉衡获得一点力量;回合开始阶段,玉衡每有一点力量,你便可以获得一名其他角色的一张牌',
|
||||
shujinsan:'舒筋散',
|
||||
shujinsan_info:'对任意角色使用,目标可弃置任意张牌,并摸等量的牌',
|
||||
mutoumianju:'木头面具',
|
||||
mutoumianju_info:'装备后视为拥有技能龙胆',
|
||||
heilonglinpian:'黑龙鳞片',
|
||||
heilonglinpian_info:'对自己使用,获得一点护甲,直到下一回合开始,计算其他角色与你的距离时始终+1',
|
||||
|
||||
food:'食物',
|
||||
chunbing:'春饼',
|
||||
gudonggeng:'骨董羹',
|
||||
|
@ -126,7 +153,6 @@ card.gujian={
|
|||
xiajiao:'虾饺',
|
||||
tanhuadong:'昙花冻',
|
||||
qingtuan:'青团',
|
||||
|
||||
luyugeng:'鲈鱼羹',
|
||||
yuanbaorou:'元宝肉',
|
||||
molicha:'茉莉茶',
|
||||
|
|
98
card/swd.js
|
@ -1,5 +1,87 @@
|
|||
card.swd={
|
||||
card:{
|
||||
dujian:{
|
||||
fullskin:true,
|
||||
type:'basic',
|
||||
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){
|
||||
if(rand) return Math.random();
|
||||
return 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.$gain2(event.card2);
|
||||
target.addTempSkill('dujian2','phaseBegin');
|
||||
}
|
||||
ui.arena.classList.remove('thrownhighlight');
|
||||
game.addVideo('thrownhighlight2');
|
||||
},
|
||||
ai:{
|
||||
basic:{
|
||||
order:2,
|
||||
value:3,
|
||||
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(target.hasSkill('dujian2')||target.num('h')==0) return 0;
|
||||
if(player.num('h')<=1) return 0;
|
||||
return -1.5;
|
||||
}
|
||||
},
|
||||
tag:{
|
||||
loseHp:1
|
||||
}
|
||||
}
|
||||
},
|
||||
yangpijuan:{
|
||||
fullskin:true,
|
||||
type:'trick',
|
||||
|
@ -605,6 +687,8 @@ card.swd={
|
|||
type:'equip',
|
||||
subtype:'equip5',
|
||||
nomod:true,
|
||||
equipDelay:false,
|
||||
loseDelay:false,
|
||||
onEquip:function(){
|
||||
player.markSkill('lianyaohu_skill');
|
||||
},
|
||||
|
@ -1503,6 +1587,9 @@ card.swd={
|
|||
if(target==_status.event.getParent(2).dying||target==_status.dying) target.recover();
|
||||
else{
|
||||
target.addTempSkill('tianxianjiu',['phaseAfter','shaAfter']);
|
||||
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]));
|
||||
|
@ -1794,6 +1881,8 @@ card.swd={
|
|||
}
|
||||
}
|
||||
},
|
||||
equipDelay:false,
|
||||
loseDelay:false,
|
||||
onLose:function(){
|
||||
player.storage.nigong=0;
|
||||
player.unmarkSkill('nigong');
|
||||
|
@ -1807,6 +1896,8 @@ card.swd={
|
|||
type:'equip',
|
||||
subtype:'equip5',
|
||||
skills:['xujin'],
|
||||
equipDelay:false,
|
||||
loseDelay:false,
|
||||
onLose:function(){
|
||||
player.storage.xujin=0;
|
||||
},
|
||||
|
@ -1872,6 +1963,7 @@ card.swd={
|
|||
},
|
||||
},
|
||||
skill:{
|
||||
dujian2:{},
|
||||
_yuchan_swap:{
|
||||
trigger:{player:'useCardAfter'},
|
||||
forced:true,
|
||||
|
@ -4887,6 +4979,8 @@ card.swd={
|
|||
nvwashi_bg:'石',
|
||||
kongxin:'控心',
|
||||
lianhua:'炼化',
|
||||
dujian:'毒箭',
|
||||
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
|
||||
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
|
||||
shouna:'收纳',
|
||||
shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶',
|
||||
|
@ -5038,5 +5132,9 @@ card.swd={
|
|||
['club',6,'yuchanli'],
|
||||
['diamond',7,'yuchangen'],
|
||||
['heart',8,'yuchandui'],
|
||||
|
||||
['spade',3,'dujian','poison'],
|
||||
['club',11,'dujian','poison'],
|
||||
['club',12,'dujian','poison'],
|
||||
],
|
||||
}
|
||||
|
|
|
@ -586,88 +586,6 @@ card.yunchou={
|
|||
}
|
||||
}
|
||||
},
|
||||
dujian:{
|
||||
fullskin:true,
|
||||
type:'basic',
|
||||
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){
|
||||
if(rand) return Math.random();
|
||||
return 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.$gain2(event.card2);
|
||||
target.addTempSkill('dujian2','phaseBegin');
|
||||
}
|
||||
ui.arena.classList.remove('thrownhighlight');
|
||||
game.addVideo('thrownhighlight2');
|
||||
},
|
||||
ai:{
|
||||
basic:{
|
||||
order:2,
|
||||
value:3,
|
||||
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(target.hasSkill('dujian2')||target.num('h')==0) return 0;
|
||||
if(player.num('h')<=1) return 0;
|
||||
return -1.5;
|
||||
}
|
||||
},
|
||||
tag:{
|
||||
loseHp:1
|
||||
}
|
||||
}
|
||||
},
|
||||
qiankundai:{
|
||||
fullskin:true,
|
||||
type:'equip',
|
||||
|
@ -738,7 +656,6 @@ card.yunchou={
|
|||
},trigger.player,-1).targetRequired=true;
|
||||
}
|
||||
},
|
||||
dujian2:{},
|
||||
qiankundai:{
|
||||
mod:{
|
||||
maxHandcard:function(player,num){
|
||||
|
@ -812,8 +729,6 @@ card.yunchou={
|
|||
hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置3张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去一点体力,X至少为1',
|
||||
liuxinghuoyu:'流星火羽',
|
||||
liuxinghuoyu_info:'出牌阶段,对一名角色使用,令目标弃置2张牌,或受到一点火焰伤害',
|
||||
dujian:'毒箭',
|
||||
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
|
||||
qiankundai:'乾坤袋',
|
||||
qiankundai_info:'你的手牌上限+1。当你失去该装备时,你摸取一张牌。',
|
||||
hufu:'虎符',
|
||||
|
@ -832,9 +747,6 @@ card.yunchou={
|
|||
['diamond',3,'liuxinghuoyu','fire'],
|
||||
['heart',6,'liuxinghuoyu','fire'],
|
||||
['heart',9,'liuxinghuoyu','fire'],
|
||||
['spade',3,'dujian','poison'],
|
||||
['club',11,'dujian','poison'],
|
||||
['club',12,'dujian','poison'],
|
||||
['heart',3,'yihuajiemu'],
|
||||
["diamond",3,'guohe'],
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ window.noname_asset_list=[
|
|||
'image/card/guohe.png',
|
||||
'image/card/hanbing.png',
|
||||
'image/card/haotianta.png',
|
||||
'image/card/heilonglinpian.png',
|
||||
'image/card/hongshui.png',
|
||||
'image/card/hsbaowu_cangbaotu.jpg',
|
||||
'image/card/hsbaowu_huangjinyuanhou.jpg',
|
||||
|
@ -115,6 +116,7 @@ window.noname_asset_list=[
|
|||
'image/card/molicha.png',
|
||||
'image/card/muniu.png',
|
||||
'image/card/mujiaren.png',
|
||||
'image/card/mutoumianju.png',
|
||||
'image/card/nanman.png',
|
||||
'image/card/nvwashi.png',
|
||||
'image/card/pangufu.png',
|
||||
|
@ -146,6 +148,7 @@ window.noname_asset_list=[
|
|||
'image/card/shuchui.png',
|
||||
'image/card/shuiyanqijun.png',
|
||||
'image/card/shuiyanqijunx.png',
|
||||
'image/card/shujinsan.png',
|
||||
'image/card/shunshou.png',
|
||||
'image/card/shushangkaihua.png',
|
||||
'image/card/sifeizhenmian.png',
|
||||
|
@ -199,6 +202,7 @@ window.noname_asset_list=[
|
|||
'image/card/yuchanli.png',
|
||||
'image/card/yuchangen.png',
|
||||
'image/card/yuchandui.png',
|
||||
'image/card/yuheng.png',
|
||||
'image/card/yuxi.png',
|
||||
'image/card/yuansuhuimie.png',
|
||||
'image/card/yufulu.png',
|
||||
|
|
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 112 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 36 KiB |