This commit is contained in:
libccy 2017-02-09 14:55:39 +08:00
parent c0956670e7
commit c555f9fcd6
4 changed files with 30 additions and 13 deletions

View File

@ -884,7 +884,14 @@ character.diy={
"step 0"
player.draw(2);
"step 1"
player.chooseToDiscard('hej',2,true);
next=player.discardPlayerCard(player,'hej',2,true);
next.ai=function(button){
if(get.position(button.link)=='j') return 10;
return -ai.get.value(button.link);
};
next.filterButton=function(button){
return lib.filter.cardDiscardable(button.link,player);
}
},
ai:{
effect:{

View File

@ -31595,6 +31595,12 @@
if(_status.clicked) return;
if(ui.intro) return;
_status.clicked=true;
if(this.parentNode&&arguments[0]&&(this.parentNode.classList.contains('judges')||this.parentNode.classList.contains('marks'))){
ui.click.touchpop();
ui.click.intro.call(this,arguments[0]);
_status.clicked=false;
return;
}
var custom=_status.event.custom;
if(custom.replace.card){
custom.replace.card(this);

View File

@ -1593,7 +1593,9 @@ margin-bottom: 5px;
#arena.selecting:not(.video) #me .card:not(.selectable)>.addinfo,
#arena.selecting:not(.video) .dialog:not(.noselect) .button:not(.selectable):not(.noclick),
.dead,.likedead{opacity: 0.6;}
#arena.selecting:not(.video) .player[data-position='0'] .marks>.card:not(.selectable)>.image{
#arena.selecting:not(.video) .player[data-position='0'] .marks>.card:not(.selectable)>.image,
#arena.selecting:not(.video) .player[data-position='0'] .judges>.card:not(.selectable)>.image,
#arena.selecting:not(.video) .player[data-position='0'] .judges>.card:not(.selectable)>.background{
opacity: 1;
}
.unselectable:not(.selected):not(.removing){opacity: 0.6 !important}

View File

@ -3236,16 +3236,21 @@ mode.boss={
},
content:function(){
"step 0"
player.chooseToDiscard(2,'hj',function(card){
if(ui.selected.cards.length==0) return true;
if(get.position(ui.selected.cards[0])=='h'){
var next=player.discardPlayerCard(player,2,'hj','是否一张手牌来弃置一张花色相同的判定牌?');
next.filterButton=function(button){
var card=button.link;
if(!lib.filter.cardDiscardable(card,player)) return false;
if(ui.selected.buttons.length==0) return true;
if(get.position(ui.selected.buttons[0].link)=='h'){
if(get.position(card)!='j') return false;
}
if(get.position(ui.selected.cards[0])=='j'){
if(get.position(ui.selected.buttons[0].link)=='j'){
if(get.position(card)!='h') return false;
}
return get.suit(card)==get.suit(ui.selected.cards[0])
},'是否一张手牌来弃置一张花色相同的判定牌?').ai=function(card){
return get.suit(card)==get.suit(ui.selected.buttons[0].link)
};
next.ai=function(button){
var card=button.link;
if(get.position(card)=='h'){
return 11-ai.get.value(card);
}
@ -3253,11 +3258,8 @@ mode.boss={
if(card.name=='bingliang') return 4;
if(card.name=='guiyoujie') return 3;
return 2;
}
"step 1"
if(result.bool){
player.logSkill('xiuluo');
}
};
next.logSkill='xiuluo';
}
},
shangshix2:{