mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
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:
+4
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user