This commit is contained in:
libccy 2015-10-10 22:38:33 +08:00
parent 60005c0847
commit 2633b00bbc
8 changed files with 34 additions and 42 deletions

View File

@ -2,3 +2,4 @@
战棋模式改进
单人控制改进
新武将
修bug

View File

@ -769,14 +769,6 @@ character.extra={
}
}
},
qinyin:{
inherit:'swdqinyin',
trigger:{player:'phaseDiscardEnd'},
direct:true,
filter:function(event,player){
return event.cards&&event.cards.length>1
},
},
longhun:{
group:['longhun1','longhun2','longhun3','longhun4'],
ai:{

View File

@ -174,22 +174,13 @@ character.hearth={
trigger:{global:'dieAfter'},
forced:true,
filter:function(event,player){
return !event.player.storage.bingshi&&event.player.skills.contains('bingshi');
return event.player.skills.contains('bingshi');
},
content:function(){
'step 0'
event.targets=get.players(trigger.player);
event.targets.remove(trigger.player);
trigger.player.storage.bingshi=true;
'step 1'
if(event.targets.length){
var current=event.targets.shift();
trigger.player.line(current,'thunder');
current.damage('nosource','thunder').animate=false;
current.$damage(trigger.player);
current.$thunder();
event.redo();
}
trigger.player.line(player,'thunder');
player.damage('nosource','thunder').animate=false;
player.$damage(trigger.player);
player.$thunder();
}
},
huanwu:{

View File

@ -2827,14 +2827,17 @@ character.swd={
player.draw(2);
},
},
swdqinyin:{
trigger:{player:'phaseEnd'},
qinyin:{
trigger:{player:'phaseDiscardEnd'},
direct:true,
filter:function(event,player){
return !player.getStat('damage');
return event.cards&&event.cards.length>1
},
content:function(){
"step 0"
if(typeof event.count!='number'){
event.count=trigger.cards.length-1;
}
var recover=0,lose=0;
for(var i=0;i<game.players.length;i++){
if(!game.players[i].isOut()){
@ -2867,7 +2870,7 @@ character.swd={
}
}
player.chooseControl('失去体力','回复体力','cancel',
ui.create.dialog('是否发动【琴音】','hidden')).ai=function(){
ui.create.dialog('是否发动【琴音】(剩余'+get.cnNumber(event.count)+'次)','hidden')).ai=function(){
// console.log(lose,recover);
if(lose>recover&&lose>0) return 0;
if(lose<recover&&recover>0) return 1;
@ -2895,6 +2898,11 @@ character.swd={
event.num++;
event.redo();
}
"step 3"
if(event.count>1){
event.count--;
event.goto(0);
}
},
ai:{
expose:0.1,
@ -7922,7 +7930,7 @@ character.swd={
yuhuo:'浴火',
huanjian_info:'你可以将一张黑色手牌当作毒箭使用',
shengshou_info:'你可以将一张黑色手牌当作草药使用',
susheng_info:'在任意一名角色即将死亡时你可以弃置一张手牌防止其死亡并将其体力回复至1合限发动一次',
susheng_info:'在任意一名角色即将死亡时你可以弃置一张手牌防止其死亡并将其体力回复至1合限发动一次',
zhanlu_info:'出牌阶段,你可以弃置一张黑桃牌令至多3名角色各回复一点体力',
kunlunjing_info:'回合开始前,你可以令场上所有牌还原到你上一回合结束时的位置,然后流失一点体力',
swd_xiuluo_info:'回合开始阶段,你可以弃一张手牌来弃置你判断区里的一张延时类锦囊(必须花色相同)',

View File

@ -8202,17 +8202,17 @@
var node2=ui.create.div('#paused2',node);
node2.innerHTML='已暂停';
node2.listen(function(){
_status.clicked=true;
if(ui.sidebar.classList.contains('hidden')){
ui.sidebar.show();
ui.sidebar3.show();
}
else{
ui.sidebar.hide();
ui.sidebar3.hide();
}
});
// node2.listen(function(){
// _status.clicked=true;
// if(ui.sidebar.classList.contains('hidden')){
// ui.sidebar.show();
// ui.sidebar3.show();
// }
// else{
// ui.sidebar.hide();
// ui.sidebar3.hide();
// }
// });
return node;
},
button:function(item,type,position,noclick){

View File

@ -213,8 +213,8 @@ margin-bottom: 5px;
text-shadow: black 0 0 1px, rgba(10, 155, 67, 1) 0 0 5px, rgba(10, 155, 67, 1) 0 0 10px;
}
.player>.avatar:not(.glow2)>.action{opacity: 0}
.player.fakeme{width:100px;height:120px;top:calc(100% - 140px)}
.player.fakeme>.avatar{width: 100%;height: 100%;box-shadow: none;left: 0;top: 0}
.player.controlfakeme{width:100px;height:120px;top:calc(100% - 140px)}
.player.controlfakeme>.avatar{width: 100%;height: 100%;box-shadow: none;left: 0;top: 0}
.player{z-index: 4;width: 240px;height: 120px;}
.player.minskin{width:120px;}
.player.replaceme{-webkit-animation:replaceme 0.5s}

View File

@ -177,7 +177,7 @@ mode.boss={
if(game.me!==boss){
game.singleHandcard=true;
ui.arena.classList.add('single-handcard');
ui.fakeme=ui.create.div('.player');
ui.fakeme=ui.create.div('.player.controlfakeme');
ui.fakeme.dataset.position=0;
ui.fakeme.line=lib.element.player.line;
ui.fakemebg=ui.create.div('.avatar',ui.fakeme).hide();

View File

@ -334,7 +334,7 @@ mode.versus={
}
game.singleHandcard=true;
ui.arena.classList.add('single-handcard');
ui.fakeme=ui.create.div('.player.fakeme');
ui.fakeme=ui.create.div('.player.controlfakeme');
ui.fakeme.line=lib.element.player.line;
ui.fakemebg=ui.create.div('.avatar',ui.fakeme).hide();
}