This commit is contained in:
libccy 2016-06-08 15:45:01 +08:00
parent 6764c9827f
commit 577a241c19
4 changed files with 149 additions and 57 deletions

View File

@ -218,7 +218,7 @@ card.guozhan={
var player=_status.event.player; var player=_status.event.player;
return ai.get.damageEffect(target,player,player); return ai.get.damageEffect(target,player,player);
}, },
prompt:'是否发动三尖两刃刀?' prompt:'是否发动三尖两刃刀'
}).set('damaged',damaged); }).set('damaged',damaged);
"step 1" "step 1"
if(result.bool){ if(result.bool){

View File

@ -6,33 +6,28 @@ card.shenqi={
subtype:'equip5', subtype:'equip5',
skills:['donghuangzhong'], skills:['donghuangzhong'],
enable:function(card,player){return player==game.me;}, enable:function(card,player){return player==game.me;},
onEquip:function(){ ai:{
//if(player==game.me) player.loseHp(); basic:{
}, equipValue:6
onLose:function(){ }
//if(player==game.me) player.loseHp();
} }
}, },
xuanyuanjian:{ xuanyuanjian:{
fullskin:true, fullskin:true,
type:'equip', type:'equip',
subtype:'equip1', subtype:'equip1',
skills:['xuanyuanjian','xuanyuanjian2'], skills:['xuanyuanjian','xuanyuanjian2','xuanyuanjian3'],
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:-3}, distance:{attackFrom:-3},
onEquip:function(){ onEquip:function(){
//player.loseHp();
if(!player.skills.contains('xuanyuan')&&player.hp<=2){ if(!player.skills.contains('xuanyuan')&&player.hp<=2){
player.discard(card); player.discard(card);
} }
}, },
onLose:function(){
if(!player.skills.contains('xuanyuan')) player.loseHp();
},
ai:{ ai:{
equipValue:20 equipValue:9
} }
}, },
pangufu:{ pangufu:{
@ -49,9 +44,6 @@ card.shenqi={
fullskin:true, fullskin:true,
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
onLose:function(){
delete player.storage.lianhua;
},
ai:{ ai:{
equipValue:8 equipValue:8
}, },
@ -62,15 +54,8 @@ card.shenqi={
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
skills:['haotianta'], skills:['haotianta'],
enable:function(card,player){return player==game.me;},
onEquip:function(){
//player.loseHp();
},
onLose:function(){
//player.loseHp();
},
ai:{ ai:{
equipValue:0 equipValue:5
} }
}, },
fuxiqin:{ fuxiqin:{
@ -110,15 +95,9 @@ card.shenqi={
fullskin:true, fullskin:true,
type:'equip', type:'equip',
subtype:'equip5', subtype:'equip5',
skills:['kunlunjing'], skills:['kunlunjingc'],
onEquip:function(){
//if(player==game.me) player.loseHp();
},
onLose:function(){
//if(player==game.me) player.loseHp();
},
ai:{ ai:{
equipValue:5 equipValue:6
} }
}, },
nvwashi:{ nvwashi:{
@ -132,6 +111,49 @@ card.shenqi={
} }
}, },
skill:{ skill:{
kunlunjingc:{
enable:'phaseUse',
usable:1,
filter:function(event,player){
return player.num('h')>0;
},
delay:false,
content:function(){
'step 0'
var cards=get.cards(3);
event.cards=cards;
player.chooseCardButton('选择一张牌',cards,true);
'step 1'
event.card=result.links[0];
player.chooseCard('h',true,'用一张手牌替换'+get.translation(event.card));
'step 2'
if(result.bool){
event.cards[event.cards.indexOf(event.card)]=result.cards[0];
player.lose(result.cards,ui.special);
var cardx=ui.create.card();
cardx.classList.add('infohidden');
cardx.classList.add('infoflip');
player.$throw(cardx,1000,'nobroadcast');
}
else{
event.finish();
}
'step 3'
player.gain(event.card);
player.$draw();
for(var i=event.cards.length-1;i>=0;i--){
event.cards[i].fix();
ui.cardPile.insertBefore(event.cards[i],ui.cardPile.firstChild);
}
game.delay();
},
ai:{
order:10,
result:{
player:1
}
}
},
lianhua:{ lianhua:{
enable:'phaseUse', enable:'phaseUse',
filter:function(event,player){ filter:function(event,player){
@ -214,6 +236,50 @@ card.shenqi={
}, },
shouna2:{}, shouna2:{},
donghuangzhong:{ donghuangzhong:{
trigger:{player:'phaseEnd'},
direct:true,
filter:function(event,player){
return player.num('h')>0;
},
content:function(){
'step 0'
player.chooseCardTarget({
filterTarget:true,
filterCard:true,
ai1:function(card){
return 7-ai.get.useful(card);
},
ai2:function(target){
return -ai.get.attitude(player,target);
},
prompt:'是否发动【东皇钟】?'
});
'step 1'
if(result.bool){
player.logSkill('donghuangzhong',result.targets);
player.discard(result.cards);
event.target=result.targets[0];
}
else{
event.finish();
}
'step 2'
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])){
list.push(lib.inpile[i]);
}
}
if(list.length){
var card=game.createCard(list.randomGet());
target.addJudge(card);
target.$draw(card);
game.delay();
}
}
},
donghuangzhong_old:{
mode:['identity','guozhan'], mode:['identity','guozhan'],
enable:'phaseUse', enable:'phaseUse',
usable:1, usable:1,
@ -267,11 +333,6 @@ card.shenqi={
} }
}, },
xuanyuanjian:{ xuanyuanjian:{
mod:{
selectTarget:function(card,player,range){
if(card.name=='sha'&&range[1]!=-1) range[1]++;
},
},
trigger:{player:'changeHp'}, trigger:{player:'changeHp'},
forced:true, forced:true,
popup:false, popup:false,
@ -279,7 +340,10 @@ card.shenqi={
return !player.skills.contains('xuanyuan')&&player.hp<=2 return !player.skills.contains('xuanyuan')&&player.hp<=2
}, },
content:function(){ content:function(){
player.discard(player.get('e','1')); var e1=player.get('e','1');
if(e1&&e1.name=='xuanyuanjian'){
player.discard(e1);
}
}, },
ai:{ ai:{
threaten:1.5 threaten:1.5
@ -289,12 +353,23 @@ card.shenqi={
trigger:{source:'damageBefore'}, trigger:{source:'damageBefore'},
forced:true, forced:true,
filter:function(event){ filter:function(event){
return Math.random()<0.5; return event.notLink();
}, },
content:function(){ content:function(){
trigger.num++; trigger.num++;
if(!trigger.nature) trigger.nature='thunder'; if(!trigger.nature) trigger.nature='thunder';
player.get('e','1').animate('thunder'); }
},
xuanyuanjian3:{
trigger:{source:'damageAfter'},
forced:true,
popup:false,
filter:function(event){
return event.notLink();
},
content:function(){
player.loseHp();
player.draw();
} }
}, },
pangufu:{ pangufu:{
@ -372,16 +447,22 @@ card.shenqi={
direct:true, direct:true,
content:function(){ content:function(){
"step 0" "step 0"
event.cards=get.cards(9); event.cards=get.cards(3);
player.chooseCardButton(event.cards,'昊天塔:选择一张牌作为'+get.translation(trigger.player)+'的'+trigger.judgestr+'判定结果').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 1+trigger.judge(button.link);
} }
if(ai.get.attitude(player,trigger.player)<0){ if(ai.get.attitude(player,trigger.player)<0){
return -trigger.judge(button.link); return 1-trigger.judge(button.link);
} }
return 0;
}; };
"step 1" "step 1"
if(!result.bool){
event.finish();
return;
}
player.logSkill('haotianta',trigger.player);
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+'判定'; var judgestr=get.translation(trigger.player)+'的'+trigger.judgestr+'判定';
@ -390,9 +471,18 @@ card.shenqi={
event.dialog.classList.add('center'); event.dialog.classList.add('center');
event.dialog.videoId=event.videoId; event.dialog.videoId=event.videoId;
game.addVideo('judge1',player,[get.cardInfo(card),trigger.judgestr,event.videoId]); game.addVideo('judge1',player,[get.cardInfo(card),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');
var node;
if(game.chess){
node=card.copy('thrown','center',ui.arena).animate('start');
}
else{
node=player.$throwordered(card.copy(),true);
}
node.classList.add('thrownhighlight');
ui.arena.classList.add('thrownhighlight');
if(card){ if(card){
trigger.untrigger(); trigger.untrigger();
trigger.finish(); trigger.finish();
@ -421,6 +511,7 @@ card.shenqi={
event.finish(); event.finish();
} }
"step 2" "step 2"
ui.arena.classList.remove('thrownhighlight');
event.dialog.close(); event.dialog.close();
game.addVideo('judge2',null,event.videoId); game.addVideo('judge2',null,event.videoId);
ui.clear(); ui.clear();
@ -479,20 +570,16 @@ card.shenqi={
trigger:{global:'dying'}, trigger:{global:'dying'},
priority:6, priority:6,
filter:function(event,player){ filter:function(event,player){
return event.player.hp<=0; return event.player.hp<=0&&player.hp>1;
}, },
check:function(event,player){ check:function(event,player){
return ai.get.attitude(player,event.player)>0; return ai.get.attitude(player,event.player)>=3;
}, },
content:function(){ content:function(){
"step 0" "step 0"
trigger.player.judge(function(card){
return get.suit(card)=='heart'?1:0;
});
"step 1"
if(result.bool){
trigger.player.recover(); trigger.player.recover();
} "step 1"
player.loseHp();
}, },
ai:{ ai:{
threaten:1.2, threaten:1.2,
@ -653,14 +740,14 @@ card.shenqi={
lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌', lianhua_info:'出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',
shouna:'收纳', shouna:'收纳',
shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次', shouna_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你可以选择其中的一张放入炼妖壶,每名角色的回合限一次',
donghuangzhong_info:'出牌阶段你可以将一名已死亡角色永久移出游戏然后回复一点体力或创建一名与你身份相同的新角色然后流失X点体力X为新角色的体力上限', donghuangzhong_info:'回合结束阶段,你可以弃置一张手牌,并选择一名角色将一张随机判定牌置入其判定区',
xuanyuanjian_info:'锁定技,你使用的杀无视距离可以额外指定一个目标每当你造成一次伤害有50的机率使伤害加一并变为雷属性。任何时候若你体力值不超过2则立即失去轩辕剑', xuanyuanjian_info:'锁定技,每当你即将造成一次伤害,你令此伤害加一并变为雷属性,此伤害结算后,你流失一点体力并摸一张牌。任何时候若你体力值不超过2则立即失去轩辕剑',
pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌', pangufu_info:'锁定技,每当你造成一次伤害,受伤角色须弃置一张牌',
haotianta_info:'任意一名角色进行判定前,你可以亮出牌堆顶的9张牌,并选择一张作为判定结果,此结果不可被更改,也不能触发技能', haotianta_info:'任意一名角色进行判定前,你可以观看牌堆顶的3张牌,并选择一张作为判定结果,此结果不可被更改,也不能触发技能',
shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次', shennongding_info:'出牌阶段,你可以弃置两张手牌,然后回复一点体力。每阶段限一次',
kongdongyin_info:'令你抵挡一次死亡将体力回复至1并摸一张牌发动后进入弃牌堆', kongdongyin_info:'令你抵挡一次死亡将体力回复至1并摸一张牌发动后进入弃牌堆',
kunlunjingc_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束后的位置,然后流失一点体力', kunlunjingc_info:'出牌阶段限一次,你可以观看牌堆顶的三张牌,然后用一张手牌替换其中的一张',
nvwashi_info:'意一名角色濒死时,你可以令其进行一次判定,若结果为红桃,其回复一点体力', nvwashi_info:'当一名角色濒死时若你的体力值大于1你可以失去一点体力并令其回复一点体力',
kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌', kongxin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌', fuxiqin_info:'出牌阶段限一次,你可以与一名其他角色进行拼点,若你赢,你可以指定另一名角色视为对方对该角色使用一张杀,否则对方可弃置你一张牌',
lianyaohu_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你将其放入炼妖壶(每回合只发动一次);出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌', lianyaohu_info:'当一名其他角色于回合外弃置的卡牌进入弃牌堆后,你将其放入炼妖壶(每回合只发动一次);出牌阶段限一次,你可以弃置两张炼妖壶中的牌,从牌堆中获得一张与弃置的牌类别均不相同的牌',

View File

@ -8,6 +8,8 @@ window.noname_update={
'character/ow.js', 'character/ow.js',
'card/swd.js', 'card/swd.js',
'card/hearth.js', 'card/hearth.js',
'card/shenqi.js',
'card/guozhan.js',
'game/package.js', 'game/package.js',
'game/game.js', 'game/game.js',
'game/source.js', 'game/source.js',

View File

@ -426,6 +426,9 @@ body>.background{z-index:-5}
filter:blur(6px) !important; filter:blur(6px) !important;
-webkit-filter:blur(6px) !important; -webkit-filter:blur(6px) !important;
} }
.invert-color{
-webkit-filter:invert(1);
}
.zoominanim{-webkit-animation:zoomin 0.5s;} .zoominanim{-webkit-animation:zoomin 0.5s;}
.zoomin{transform: scale(1.05) !important;} .zoomin{transform: scale(1.05) !important;}
.zoomout{transform: scale(0.95) !important;} .zoomout{transform: scale(0.95) !important;}