Take all and what?

The change is somehow linguistic, rather than anything else.
"Take everything and leave" changes name and becomes "Take everything and X", where X is the verb of the command it impersonates.
This way after completing mines e.g. it is "Take everything and continue", acting like "continue" button.
It now also cools down if it impersonates a "leave" button (leave buttons cool down. IDK why).
This commit is contained in:
Andrea Rendine
2016-02-14 21:00:04 +01:00
parent e3d5e25b94
commit d295ca9aa5
+4 -1
View File
@@ -589,6 +589,7 @@ var Events = {
var takeET = new Button.Button({
id: 'loot_takeEverything',
text: '',
cooldown: Events._LEAVE_COOLDOWN,
click: Events.takeEverything
}).appendTo(takeETrow);
$('<span>').insertBefore(takeET.children('.cooldown'));
@@ -650,8 +651,10 @@ var Events = {
var textbox = btn.children('span');
var takeAndLeave = (btn.data('leaveBtn')) ? btn.data('canTakeEverything') : false;
if(takeAndLeave){
textbox.text( basetext + _(' and ') + _('leave') );
var verb = btn.data('leaveBtn').text() || _('leave');
textbox.text( basetext + _(' and ') + verb);
btn.data('canLeave', true);
Button.cooldown(btn);
} else {
textbox.text( basetext );
btn.data('canLeave', false)