This commit is contained in:
libccy 2016-06-08 12:29:54 +08:00
parent 610e507bd0
commit 6764c9827f
10 changed files with 57 additions and 58 deletions

View File

@ -1,6 +1,7 @@
card.shenqi={ card.shenqi={
card:{ card:{
donghuangzhong:{ donghuangzhong:{
fullskin:true,
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
skills:['donghuangzhong'], skills:['donghuangzhong'],
@ -13,13 +14,14 @@ card.shenqi={
} }
}, },
xuanyuanjian:{ xuanyuanjian:{
fullskin:true,
type:'equip', type:'equip',
subtype:'equip1', subtype:'equip1',
skills:['xuanyuanjian','xuanyuanjian2'], skills:['xuanyuanjian','xuanyuanjian2'],
enable:function(card,player){ enable:function(card,player){
return player.skills.contains('xuanyuan')||player.hp>2; return player.skills.contains('xuanyuan')||player.hp>2;
}, },
distance:{attackFrom:-Infinity}, distance:{attackFrom:-3},
onEquip:function(){ onEquip:function(){
//player.loseHp(); //player.loseHp();
if(!player.skills.contains('xuanyuan')&&player.hp<=2){ if(!player.skills.contains('xuanyuan')&&player.hp<=2){
@ -56,6 +58,7 @@ card.shenqi={
skills:['lianhua','shouna'] skills:['lianhua','shouna']
}, },
haotianta:{ haotianta:{
fullskin:true,
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
skills:['haotianta'], skills:['haotianta'],
@ -103,20 +106,21 @@ card.shenqi={
} }
} }
}, },
// kunlunjing:{ kunlunjingc:{
// type:'equip', fullskin:true,
// subtype:'equip5', type:'equip',
// skills:['kunlunjing'], subtype:'equip5',
// onEquip:function(){ skills:['kunlunjing'],
// //if(player==game.me) player.loseHp(); onEquip:function(){
// }, //if(player==game.me) player.loseHp();
// onLose:function(){ },
// //if(player==game.me) player.loseHp(); onLose:function(){
// }, //if(player==game.me) player.loseHp();
// ai:{ },
// equipValue:5 ai:{
// } equipValue:5
// }, }
},
nvwashi:{ nvwashi:{
fullskin:true, fullskin:true,
type:'equip', type:'equip',
@ -365,10 +369,11 @@ card.shenqi={
}, },
haotianta:{ haotianta:{
trigger:{global:'judgeBefore'}, trigger:{global:'judgeBefore'},
direct:true,
content:function(){ content:function(){
"step 0" "step 0"
event.cards=get.cards(9); event.cards=get.cards(9);
player.chooseCardButton(event.cards,'选择一张牌作为判定结果',true).ai=function(button){ player.chooseCardButton(event.cards,'昊天塔:选择一张牌作为'+get.translation(trigger.player)+'的'+trigger.judgestr+'判定结果').ai=function(button){
if(ai.get.attitude(player,trigger.player)>0){ if(ai.get.attitude(player,trigger.player)>0){
return trigger.judge(button.link); return trigger.judge(button.link);
} }
@ -379,6 +384,13 @@ card.shenqi={
"step 1" "step 1"
var card=result.links[0]; var card=result.links[0];
event.cards.remove(card); event.cards.remove(card);
var judgestr=get.translation(trigger.player)+'的'+trigger.judgestr+'判定';
event.videoId=lib.status.videoId++;
event.dialog=ui.create.dialog(judgestr);
event.dialog.classList.add('center');
event.dialog.videoId=event.videoId;
game.addVideo('judge1',player,[get.cardInfo(card),trigger.judgestr,event.videoId]);
for(var i=0;i<event.cards.length;i++) ui.discardPile.appendChild(event.cards[i]); for(var i=0;i<event.cards.length;i++) ui.discardPile.appendChild(event.cards[i]);
var node=card.copy('thrown','center',ui.arena).animate('start'); var node=card.copy('thrown','center',ui.arena).animate('start');
if(card){ if(card){
@ -388,6 +400,9 @@ card.shenqi={
card:card, card:card,
judge:trigger.judge(card), judge:trigger.judge(card),
node:node, node:node,
number:get.number(card),
suit:get.suit(card),
color:get.color(card),
}; };
if(trigger.result.judge>0){ if(trigger.result.judge>0){
trigger.result.bool=true; trigger.result.bool=true;
@ -406,15 +421,12 @@ card.shenqi={
event.finish(); event.finish();
} }
"step 2" "step 2"
event.dialog.close();
game.addVideo('judge2',null,event.videoId);
ui.clear();
var card=trigger.result.card; var card=trigger.result.card;
if(trigger.position!=ui.discardPile){ trigger.position.appendChild(card);
trigger.position.appendChild(card); trigger.result.node.delete();
trigger.result.node.delete();
}
else{
player.gain(card);
player.$gain2(card);
}
game.delay(); game.delay();
}, },
ai:{ ai:{
@ -626,8 +638,7 @@ card.shenqi={
fuxiqin:'伏羲琴', fuxiqin:'伏羲琴',
shennongding:'神农鼎', shennongding:'神农鼎',
kongdongyin:'崆峒印', kongdongyin:'崆峒印',
//kunlunjing:'昆仑镜', kunlunjingc:'昆仑镜',
//kunlunjing1:'昆仑镜',
nvwashi:'女娲石', nvwashi:'女娲石',
donghuangzhong_bg:'钟', donghuangzhong_bg:'钟',
lianyaohu_bg:'壶', lianyaohu_bg:'壶',
@ -635,20 +646,20 @@ card.shenqi={
fuxiqin_bg:'琴', fuxiqin_bg:'琴',
shennongding_bg:'鼎', shennongding_bg:'鼎',
kongdongyin_bg:'印', kongdongyin_bg:'印',
kunlunjing_bg:'镜', kunlunjingc_bg:'镜',
nvwashi_bg:'石', nvwashi_bg:'石',
kongxin:'控心', kongxin:'控心',
lianhua:'炼化', lianhua:'炼化',
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌', lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
shouna:'收纳', shouna:'收纳',
shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次', shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次',
// donghuangzhong_info:'出牌阶段你可以将一名已死亡角色永久移出游戏然后回复一点体力或创建一名与你身份相同的新角色然后流失X点体力X为新角色的体力上限', donghuangzhong_info:'出牌阶段你可以将一名已死亡角色永久移出游戏然后回复一点体力或创建一名与你身份相同的新角色然后流失X点体力X为新角色的体力上限',
// xuanyuanjian_info:'锁定技你使用的杀无视距离可以额外指定一个目标每当你造成一次伤害有50的机率使伤害加一并变为雷属性。任何时候若你体力值不超过2则立即失去轩辕剑', xuanyuanjian_info:'锁定技你使用的杀无视距离可以额外指定一个目标每当你造成一次伤害有50的机率使伤害加一并变为雷属性。任何时候若你体力值不超过2则立即失去轩辕剑',
pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌', pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌',
// haotianta_info:'任意一名角色进行判定前你可以亮出牌堆顶的9张牌并选择一张作为判定结果此结果不可被更改也不能触发技能', haotianta_info:'任意一名角色进行判定前你可以亮出牌堆顶的9张牌并选择一张作为判定结果此结果不可被更改也不能触发技能',
shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次', shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次',
kongdongyin_info:'令你抵挡一次死亡将体力回复至1并摸一张牌发动后进入弃牌堆', kongdongyin_info:'令你抵挡一次死亡将体力回复至1并摸一张牌发动后进入弃牌堆',
//kunlunjing_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束后的位置,然后流失一点体力', kunlunjingc_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束后的位置,然后流失一点体力',
nvwashi_info:'意一名角色濒死时,你可以令其进行一次判定,若结果为红桃,其回复一点体力', nvwashi_info:'意一名角色濒死时,你可以令其进行一次判定,若结果为红桃,其回复一点体力',
kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌', kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌', fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
@ -657,13 +668,13 @@ card.shenqi={
// fuxiqin_info:'', // fuxiqin_info:'',
}, },
list:[ list:[
// ['diamond',13,'donghuangzhong'], ['diamond',13,'donghuangzhong'],
['diamond',13,'fuxiqin'], ['diamond',13,'fuxiqin'],
// ['spade',13,'kunlunjing'], ['spade',13,'kunlunjingc'],
// ['spade',13,'xuanyuanjian'], ['spade',13,'xuanyuanjian'],
['spade',13,'pangufu'], ['spade',13,'pangufu'],
['club',13,'lianyaohu'], ['club',13,'lianyaohu'],
// ['diamond',13,'haotianta'], ['diamond',13,'haotianta'],
['club',13,'shennongding'], ['club',13,'shennongding'],
['heart',13,'nvwashi'], ['heart',13,'nvwashi'],
['heart',13,'kongdongyin'], ['heart',13,'kongdongyin'],

View File

@ -44,7 +44,7 @@ card.swd={
skills:['fengxueren'], skills:['fengxueren'],
ai:{ ai:{
basic:{ basic:{
equipValue:6 equipValue:5
}, },
}, },
}, },
@ -677,24 +677,6 @@ card.swd={
player.recover(); player.recover();
}, },
}, },
// fengxueren:{
// trigger:{source:'damageEnd'},
// filter:function(event){
// return event.card&&event.card.name=='sha';
// },
// forced:true,
// content:function(){
// "step 0"
// trigger.player.turnOver();
// trigger.player.popup('fengxueren');
// "step 1"
// trigger.player.draw();
// "step 2"
// if(player.num('he')){
// player.chooseToDiscard(true);
// }
// }
// },
fengxueren:{ fengxueren:{
trigger:{player:'shaHit'}, trigger:{player:'shaHit'},
check:function(event,player){ check:function(event,player){
@ -718,11 +700,13 @@ card.swd={
}, },
fengxueren2:{}, fengxueren2:{},
chilongya:{ chilongya:{
trigger:{source:'damageBefore'}, trigger:{source:'damageBegin'},
forced:true, forced:true,
priority:5, filter:function(event){
return event.nature=='fire';
},
content:function(){ content:function(){
trigger.nature='fire'; trigger.num++;
} }
}, },
chilongya2:{ chilongya2:{

View File

@ -22,6 +22,7 @@ window.noname_asset_list=[
'image/card/cixiong.png', 'image/card/cixiong.png',
'image/card/dawan.png', 'image/card/dawan.png',
'image/card/dilu.png', 'image/card/dilu.png',
'image/card/donghuangzhong.png',
'image/card/dujian.png', 'image/card/dujian.png',
'image/card/dujian1.png', 'image/card/dujian1.png',
'image/card/dujian2.png', 'image/card/dujian2.png',
@ -36,6 +37,7 @@ window.noname_asset_list=[
'image/card/guiyoujie.png', 'image/card/guiyoujie.png',
'image/card/guohe.png', 'image/card/guohe.png',
'image/card/hanbing.png', 'image/card/hanbing.png',
'image/card/haotianta.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',
@ -74,6 +76,7 @@ window.noname_asset_list=[
'image/card/juedou.png', 'image/card/juedou.png',
'image/card/jueying.png', 'image/card/jueying.png',
'image/card/kongdongyin.png', 'image/card/kongdongyin.png',
'image/card/kunlunjingc.png',
'image/card/langeguaiyi.png', 'image/card/langeguaiyi.png',
'image/card/lebu.png', 'image/card/lebu.png',
'image/card/lianyaohu.png', 'image/card/lianyaohu.png',
@ -256,6 +259,7 @@ window.noname_asset_list=[
'image/card/xingjiegoutong.png', 'image/card/xingjiegoutong.png',
'image/card/xingjunyan.png', 'image/card/xingjunyan.png',
'image/card/xixueguizhihuan.png', 'image/card/xixueguizhihuan.png',
'image/card/xuanyuanjian.png',
'image/card/yihuajiemu.png', 'image/card/yihuajiemu.png',
'image/card/yiyi.png', 'image/card/yiyi.png',
'image/card/yuanjiao.png', 'image/card/yuanjiao.png',

View File

@ -25628,7 +25628,7 @@
if(_status.paused2) return; if(_status.paused2) return;
if(_status.nopause) return; if(_status.nopause) return;
if(ui.pause.classList.contains('hidden')) return; if(ui.pause.classList.contains('hidden')) return;
if(!_status.gameStarted) return; if(!_status.gameStarted&&!_status.video) return;
ui.system.hide(); ui.system.hide();
game.pause2(); game.pause2();
var node=ui.create.pause().animate('start'); var node=ui.create.pause().animate('start');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 40 KiB

BIN
image/card/haotianta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
image/card/kunlunjingc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
image/card/xuanyuanjian.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB