putBack for get.cards and get.bottomCards
This commit is contained in:
parent
cc3c849fac
commit
31e6d4553b
14
game/game.js
14
game/game.js
|
@ -54306,7 +54306,7 @@
|
|||
return false;
|
||||
},
|
||||
},
|
||||
bottomCards:function(num){
|
||||
bottomCards:function(num,putBack){
|
||||
if(_status.waitingForCards){
|
||||
ui.create.cards.apply(ui.create,_status.waitingForCards);
|
||||
delete _status.waitingForCards;
|
||||
|
@ -54363,6 +54363,11 @@
|
|||
cardx.original='c';
|
||||
list.push(cardx);
|
||||
}
|
||||
if(putBack){
|
||||
for(let i=list.length-1;i>=0;i--){
|
||||
ui.cardPile.appendChild(list[i]);
|
||||
}
|
||||
}
|
||||
game.updateRoundNumber();
|
||||
if(card) return list[0];
|
||||
return list;
|
||||
|
@ -55798,7 +55803,7 @@
|
|||
}
|
||||
return card.nature;
|
||||
},
|
||||
cards:function(num){
|
||||
cards:function(num,putBack){
|
||||
if(_status.waitingForCards){
|
||||
ui.create.cards.apply(ui.create,_status.waitingForCards);
|
||||
delete _status.waitingForCards;
|
||||
|
@ -55855,6 +55860,11 @@
|
|||
cardx.original='c';
|
||||
list.push(cardx);
|
||||
}
|
||||
if(putBack){
|
||||
for(let i=list.length-1;i>=0;i--){
|
||||
ui.cardPile.insertBefore(list[i],ui.cardPile.firstChild);
|
||||
}
|
||||
}
|
||||
game.updateRoundNumber();
|
||||
if(card) return list[0];
|
||||
return list;
|
||||
|
|
24
mode/boss.js
24
mode/boss.js
|
@ -3117,10 +3117,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
return distance+1;
|
||||
},
|
||||
},
|
||||
init:function(player){
|
||||
player.$disableEquip('equip3');
|
||||
player.$disableEquip('equip4');
|
||||
},
|
||||
enable:"phaseUse",
|
||||
position:'h',
|
||||
filter:function (event,player){
|
||||
|
@ -3151,6 +3147,26 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
player:1,
|
||||
},
|
||||
},
|
||||
group:'boss_diting_init',
|
||||
subSkill:{
|
||||
trigger:{
|
||||
global:'gameStart',
|
||||
player:'enterGame',
|
||||
},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return player.hasEnabledSlot(3)||player.hasEnabledSlot(4);
|
||||
},
|
||||
content:function(){
|
||||
var disables=[];
|
||||
for(var i=3;i<=4;i++){
|
||||
for(var j=0;j<player.countEnabledSlot(i);j++){
|
||||
disables.push(i);
|
||||
}
|
||||
}
|
||||
if(disables.length>0) player.disableEquip(disables);
|
||||
},
|
||||
},
|
||||
},
|
||||
/*
|
||||
"boss_sdyl_level":{
|
||||
|
|
Loading…
Reference in New Issue