This commit is contained in:
libccy 2017-02-02 14:09:00 +08:00
parent cb712a3937
commit 6ccd7a0a94
39 changed files with 132 additions and 89 deletions

View File

@ -25,6 +25,9 @@ card.extra={
} }
} }
else{ else{
if(cards&&cards.length){
card=cards[0];
}
game.broadcastAll(function(target,card,gain2){ game.broadcastAll(function(target,card,gain2){
target.addSkill('jiu'); target.addSkill('jiu');
if(!target.node.jiu&&lib.config.jiu_effect){ if(!target.node.jiu&&lib.config.jiu_effect){

View File

@ -111,12 +111,39 @@ card.gujian={
selectTarget:-1, selectTarget:-1,
modTarget:true, 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:{}, skill:{},
cardType:{ cardType:{
food:0.3 food:0.3
}, },
translate:{ translate:{
yuheng:'玉衡',
yuheng_info:'回合结束阶段,若场你的体力值不是全场最少,你失去一点体力并令玉衡获得一点力量;回合开始阶段,玉衡每有一点力量,你便可以获得一名其他角色的一张牌',
shujinsan:'舒筋散',
shujinsan_info:'对任意角色使用,目标可弃置任意张牌,并摸等量的牌',
mutoumianju:'木头面具',
mutoumianju_info:'装备后视为拥有技能龙胆',
heilonglinpian:'黑龙鳞片',
heilonglinpian_info:'对自己使用,获得一点护甲,直到下一回合开始,计算其他角色与你的距离时始终+1',
food:'食物', food:'食物',
chunbing:'春饼', chunbing:'春饼',
gudonggeng:'骨董羹', gudonggeng:'骨董羹',
@ -126,7 +153,6 @@ card.gujian={
xiajiao:'虾饺', xiajiao:'虾饺',
tanhuadong:'昙花冻', tanhuadong:'昙花冻',
qingtuan:'青团', qingtuan:'青团',
luyugeng:'鲈鱼羹', luyugeng:'鲈鱼羹',
yuanbaorou:'元宝肉', yuanbaorou:'元宝肉',
molicha:'茉莉茶', molicha:'茉莉茶',

View File

@ -1,5 +1,87 @@
card.swd={ card.swd={
card:{ 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:{ yangpijuan:{
fullskin:true, fullskin:true,
type:'trick', type:'trick',
@ -605,6 +687,8 @@ card.swd={
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
nomod:true, nomod:true,
equipDelay:false,
loseDelay:false,
onEquip:function(){ onEquip:function(){
player.markSkill('lianyaohu_skill'); player.markSkill('lianyaohu_skill');
}, },
@ -1503,6 +1587,9 @@ card.swd={
if(target==_status.event.getParent(2).dying||target==_status.dying) target.recover(); if(target==_status.event.getParent(2).dying||target==_status.dying) target.recover();
else{ else{
target.addTempSkill('tianxianjiu',['phaseAfter','shaAfter']); 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)){ if(target==targets[0]&&card.clone&&(card.clone.parentNode==player.parentNode||card.clone.parentNode==ui.arena)){
card.clone.moveDelete(target); card.clone.moveDelete(target);
game.addVideo('gain2',target,get.cardsInfo([card])); game.addVideo('gain2',target,get.cardsInfo([card]));
@ -1794,6 +1881,8 @@ card.swd={
} }
} }
}, },
equipDelay:false,
loseDelay:false,
onLose:function(){ onLose:function(){
player.storage.nigong=0; player.storage.nigong=0;
player.unmarkSkill('nigong'); player.unmarkSkill('nigong');
@ -1807,6 +1896,8 @@ card.swd={
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
skills:['xujin'], skills:['xujin'],
equipDelay:false,
loseDelay:false,
onLose:function(){ onLose:function(){
player.storage.xujin=0; player.storage.xujin=0;
}, },
@ -1872,6 +1963,7 @@ card.swd={
}, },
}, },
skill:{ skill:{
dujian2:{},
_yuchan_swap:{ _yuchan_swap:{
trigger:{player:'useCardAfter'}, trigger:{player:'useCardAfter'},
forced:true, forced:true,
@ -4887,6 +4979,8 @@ card.swd={
nvwashi_bg:'石', nvwashi_bg:'石',
kongxin:'控心', kongxin:'控心',
lianhua:'炼化', lianhua:'炼化',
dujian:'毒箭',
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌', lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
shouna:'收纳', shouna:'收纳',
shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶', shouna_info:'出牌阶段限一次,你可以弃置一张手牌,并将一名其他角色的一张手牌置入炼妖壶',
@ -5038,5 +5132,9 @@ card.swd={
['club',6,'yuchanli'], ['club',6,'yuchanli'],
['diamond',7,'yuchangen'], ['diamond',7,'yuchangen'],
['heart',8,'yuchandui'], ['heart',8,'yuchandui'],
['spade',3,'dujian','poison'],
['club',11,'dujian','poison'],
['club',12,'dujian','poison'],
], ],
} }

View File

@ -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:{ qiankundai:{
fullskin:true, fullskin:true,
type:'equip', type:'equip',
@ -738,7 +656,6 @@ card.yunchou={
},trigger.player,-1).targetRequired=true; },trigger.player,-1).targetRequired=true;
} }
}, },
dujian2:{},
qiankundai:{ qiankundai:{
mod:{ mod:{
maxHandcard:function(player,num){ maxHandcard:function(player,num){
@ -812,8 +729,6 @@ card.yunchou={
hongshui_info:'出牌阶段对自己使用。若判定结果为梅花2~9该角色随机弃置3张牌距离该角色为X的角色随机弃置3-X张牌若没有牌则失去一点体力X至少为1', hongshui_info:'出牌阶段对自己使用。若判定结果为梅花2~9该角色随机弃置3张牌距离该角色为X的角色随机弃置3-X张牌若没有牌则失去一点体力X至少为1',
liuxinghuoyu:'流星火羽', liuxinghuoyu:'流星火羽',
liuxinghuoyu_info:'出牌阶段对一名角色使用令目标弃置2张牌或受到一点火焰伤害', liuxinghuoyu_info:'出牌阶段对一名角色使用令目标弃置2张牌或受到一点火焰伤害',
dujian:'毒箭',
dujian_info:'出牌阶段,对一名有手牌或装备牌的角色使用,令其展示一张手牌,若与你选择的手牌颜色相同,其流失一点体力',
qiankundai:'乾坤袋', qiankundai:'乾坤袋',
qiankundai_info:'你的手牌上限+1。当你失去该装备时你摸取一张牌。', qiankundai_info:'你的手牌上限+1。当你失去该装备时你摸取一张牌。',
hufu:'虎符', hufu:'虎符',
@ -832,9 +747,6 @@ card.yunchou={
['diamond',3,'liuxinghuoyu','fire'], ['diamond',3,'liuxinghuoyu','fire'],
['heart',6,'liuxinghuoyu','fire'], ['heart',6,'liuxinghuoyu','fire'],
['heart',9,'liuxinghuoyu','fire'], ['heart',9,'liuxinghuoyu','fire'],
['spade',3,'dujian','poison'],
['club',11,'dujian','poison'],
['club',12,'dujian','poison'],
['heart',3,'yihuajiemu'], ['heart',3,'yihuajiemu'],
["diamond",3,'guohe'], ["diamond",3,'guohe'],

View File

@ -48,6 +48,7 @@ window.noname_asset_list=[
'image/card/guohe.png', 'image/card/guohe.png',
'image/card/hanbing.png', 'image/card/hanbing.png',
'image/card/haotianta.png', 'image/card/haotianta.png',
'image/card/heilonglinpian.png',
'image/card/hongshui.png', 'image/card/hongshui.png',
'image/card/hsbaowu_cangbaotu.jpg', 'image/card/hsbaowu_cangbaotu.jpg',
'image/card/hsbaowu_huangjinyuanhou.jpg', 'image/card/hsbaowu_huangjinyuanhou.jpg',
@ -115,6 +116,7 @@ window.noname_asset_list=[
'image/card/molicha.png', 'image/card/molicha.png',
'image/card/muniu.png', 'image/card/muniu.png',
'image/card/mujiaren.png', 'image/card/mujiaren.png',
'image/card/mutoumianju.png',
'image/card/nanman.png', 'image/card/nanman.png',
'image/card/nvwashi.png', 'image/card/nvwashi.png',
'image/card/pangufu.png', 'image/card/pangufu.png',
@ -146,6 +148,7 @@ window.noname_asset_list=[
'image/card/shuchui.png', 'image/card/shuchui.png',
'image/card/shuiyanqijun.png', 'image/card/shuiyanqijun.png',
'image/card/shuiyanqijunx.png', 'image/card/shuiyanqijunx.png',
'image/card/shujinsan.png',
'image/card/shunshou.png', 'image/card/shunshou.png',
'image/card/shushangkaihua.png', 'image/card/shushangkaihua.png',
'image/card/sifeizhenmian.png', 'image/card/sifeizhenmian.png',
@ -199,6 +202,7 @@ window.noname_asset_list=[
'image/card/yuchanli.png', 'image/card/yuchanli.png',
'image/card/yuchangen.png', 'image/card/yuchangen.png',
'image/card/yuchandui.png', 'image/card/yuchandui.png',
'image/card/yuheng.png',
'image/card/yuxi.png', 'image/card/yuxi.png',
'image/card/yuansuhuimie.png', 'image/card/yuansuhuimie.png',
'image/card/yufulu.png', 'image/card/yufulu.png',

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
image/card/mutoumianju.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
image/card/shujinsan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
image/card/yuheng.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB