You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `Note: Smart Disenchant will not disenchant DETERMINATION or Shiny BASE cards.<br>
Normal/Shiny will disenchant <b>ALL</b> normal/shiny cards until you have 0.<br>
Prioritize will count normal/shiny together and disenchant extra non normal/shiny cards.`,
onshow(dialog){
constwindow=dialog.getModalFooter();
window.find('.us-normal').hover(hover.show('Disenchant all normal cards')).prop('disabled',!normals.length);
window.find('.us-shiny').hover(hover.show('Disenchant all shiny cards')).prop('disabled',!shinies.length);
window.find('.us-normal-p').hover(hover.show('Disenchant extra shiny cards<br />Note: Also disenchants normals > max')).prop('disabled',!pNormal.length);
window.find('.us-shiny-p').hover(hover.show('Disenchant extra normal cards<br />Note: Also disenchants shinies > max')).prop('disabled',!pShiny.length);
},
onhide: hover.hide,
buttons: [{
label: `All Normal (+${calcDust(normals)})`,
cssClass: 'btn-danger us-normal',
action(dialog){
disenchant(normals);
dialog.close();
},
},{
label: `All Shiny (+${calcDust(shinies)})`,
cssClass: 'btn-danger us-shiny',
action(dialog){
disenchant(shinies);
dialog.close();
},
},{
label: `Prioritize Normal (+${calcDust(pNormal)})`,
cssClass: 'btn-danger us-normal-p',
action(dialog){
disenchant(pNormal);
dialog.close();
},
},{
label: `Prioritize Shiny (+${calcDust(pShiny)})`,
cssClass: 'btn-danger us-shiny-p',
action(dialog){
disenchant(pShiny);
dialog.close();
},
}],
});
}
functionupdateOrToast(toast,message){
if(toast.exists()){
toast.setText(message);
}else{
fn.toast(message);
}
}
functiondisenchant(cards){
if(!cards.length)return;
consttoast=fn.toast('Please wait while disenchanting.<br />(this may take a while)');