This commit is contained in:
libccy 2015-05-01 17:34:01 +08:00
parent ad89ddcd47
commit c088930c37
4 changed files with 32 additions and 19 deletions

View File

@ -87,7 +87,6 @@ character.standard={
}, },
}, },
jianxiong:{ jianxiong:{
trigger:{player:'damageEnd'}, trigger:{player:'damageEnd'},
filter:function(event,player){ filter:function(event,player){
return get.itemtype(event.cards)=='cards'&&get.position(event.cards[0])=='d'; return get.itemtype(event.cards)=='cards'&&get.position(event.cards[0])=='d';
@ -107,7 +106,6 @@ character.standard={
} }
}, },
fankui:{ fankui:{
trigger:{player:'damageEnd'}, trigger:{player:'damageEnd'},
direct:true, direct:true,
filter:function(event,player){ filter:function(event,player){

View File

@ -170,6 +170,7 @@ window.config={
show_replay_config:'显示重来按钮', show_replay_config:'显示重来按钮',
show_pause_config:'显示暂停按钮', show_pause_config:'显示暂停按钮',
show_wuxie_config:'显示不询问无懈', show_wuxie_config:'显示不询问无懈',
show_discardpile_config:'暂停时显示弃牌堆',
only_fullskin_config:'隐藏非全身皮肤', only_fullskin_config:'隐藏非全身皮肤',
hide_card_image_config:'隐藏卡牌背景图', hide_card_image_config:'隐藏卡牌背景图',
show_auto_config:'显示托管按钮', show_auto_config:'显示托管按钮',

View File

@ -1051,7 +1051,8 @@ window.play={};
for(var i=0;i<event.result.buttons.length;i++){ for(var i=0;i<event.result.buttons.length;i++){
cards.push(event.result.buttons[i].link); cards.push(event.result.buttons[i].link);
} }
player.gain(cards); target.lose(cards);
event.cards=cards;
var hs=[],oths=[]; var hs=[],oths=[];
for(var i=0;i<cards.length;i++){ for(var i=0;i<cards.length;i++){
if(get.position(cards[i])=='h'){ if(get.position(cards[i])=='h'){
@ -1064,10 +1065,17 @@ window.play={};
if(hs.length){ if(hs.length){
target.$give(hs.length,player); target.$give(hs.length,player);
} }
else{ if(oths.length){
target.$give(oths,player); target.$give(oths,player);
} }
game.delay(); "step 3"
if(player==game.me){
game.delay(2);
}
else{
game.delay();
}
player.gain(event.cards);
}, },
showHandcards:function(){ showHandcards:function(){
"step 0" "step 0"
@ -1486,7 +1494,7 @@ window.play={};
if(cards){ if(cards){
event.source=get.owner(cards[0]); event.source=get.owner(cards[0]);
if(event.source){ if(event.source){
event.source.lose(cards); event.source.lose(cards,ui.special);
} }
} }
else{ else{
@ -2616,20 +2624,20 @@ window.play={};
else next.ai=function(card){ else next.ai=function(card){
var player=get.owner(card); var player=get.owner(card);
var event=_status.event.parent; var event=_status.event.parent;
var to=(player==event.player?event.target:event.player);
var addi=(ai.get.value(card)>=8&&get.type(card)!='equip')?-10:0; var addi=(ai.get.value(card)>=8&&get.type(card)!='equip')?-10:0;
if(player==event.player){ if(player==event.player){
if(event.small){ if(ai.get.attitude(player,to)>0&&event.small){
return -get.number(card)-ai.get.value(card)/2+addi; return -get.number(card)-ai.get.value(card)/2+addi;
} }
return get.number(card)-ai.get.value(card)/2+addi; return get.number(card)-ai.get.value(card)/2+addi;
} }
if(ai.get.attitude(player,_status.event.parent.player)>0){ else{
if(event.small){ if(ai.get.attitude(player,to)>0&&!event.small){
return get.number(card)-ai.get.value(card)/2+addi; return -get.number(card)-ai.get.value(card)/2+addi;
} }
return -get.number(card)-ai.get.value(card)/2+addi; return get.number(card)-ai.get.value(card)/2+addi;
} }
return get.number(card)-ai.get.value(card)/2+addi;
} }
next.content=lib.element.playerproto.chooseToCompare; next.content=lib.element.playerproto.chooseToCompare;
return next; return next;
@ -4377,8 +4385,8 @@ window.play={};
return; return;
} }
if(!event.revealed&&!get.info(event.skill).forced){ if(!event.revealed&&!get.info(event.skill).forced){
if(game.versusSwapControl&&get.info(event.skill).direct&&player.isUnderControl()){ if(get.info(event.skill).direct&&player.isUnderControl()){
game.versusSwapControl(player); game.modeSwapPlayer(player);
event._result={bool:true}; event._result={bool:true};
} }
else if(get.info(event.skill).frequent&&!lib.config.autoskilllist.contains(event.skill)){ else if(get.info(event.skill).frequent&&!lib.config.autoskilllist.contains(event.skill)){
@ -6825,6 +6833,7 @@ window.play={};
appearence.push(ui.create.switcher('show_auto',lib.config.show_auto,ui.click.sidebar.show_auto)); appearence.push(ui.create.switcher('show_auto',lib.config.show_auto,ui.click.sidebar.show_auto));
appearence.push(ui.create.switcher('show_volumn',lib.config.show_volumn,ui.click.sidebar.show_volumn)); appearence.push(ui.create.switcher('show_volumn',lib.config.show_volumn,ui.click.sidebar.show_volumn));
appearence.push(ui.create.switcher('show_wuxie',lib.config.show_wuxie,ui.click.sidebar.show_wuxie)); appearence.push(ui.create.switcher('show_wuxie',lib.config.show_wuxie,ui.click.sidebar.show_wuxie));
appearence.push(ui.create.switcher('show_discardpile',lib.config.show_discardpile,ui.click.sidebar.global));
appearence.push(ui.create.div('.placeholder')); appearence.push(ui.create.div('.placeholder'));
appearence.push(ui.create.switcher('title',lib.config.title,ui.click.sidebar.title)); appearence.push(ui.create.switcher('title',lib.config.title,ui.click.sidebar.title));
@ -8538,10 +8547,12 @@ window.play={};
game.pause2(); game.pause2();
var node=ui.create.pause().animate('start'); var node=ui.create.pause().animate('start');
ui.sidebar3.innerHTML=''; ui.sidebar3.innerHTML='';
for(var i=0;i<ui.discardPile.childNodes.length;i++){ if(lib.config.show_discardpile){
var div=ui.create.div(ui.sidebar3); for(var i=0;i<ui.discardPile.childNodes.length;i++){
div.innerHTML=get.translation(ui.discardPile.childNodes[i]); var div=ui.create.div(ui.sidebar3);
ui.sidebar3.insertBefore(div,ui.sidebar3.firstChild); div.innerHTML=get.translation(ui.discardPile.childNodes[i]);
ui.sidebar3.insertBefore(div,ui.sidebar3.firstChild);
}
} }
node.appendChild(ui.sidebar); node.appendChild(ui.sidebar);
node.appendChild(ui.sidebar3); node.appendChild(ui.sidebar3);

View File

@ -31,7 +31,10 @@ html{
.selected{ .selected{
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.8) 0 0 15px !important; box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(255, 0, 0, 0.8) 0 0 15px !important;
} }
.card:not(*:empty){ .card{
color:white;
}
.card.fullskin,#arena>.card:not(*:empty){
color:rgb(77, 60, 51); color:rgb(77, 60, 51);
text-shadow:none; text-shadow:none;
background: url('wood3.png'); background: url('wood3.png');