|
|
|
|
|
by djrconcepts
4730 days ago
|
|
Speed up the cool down when gathering wood or checking traps. Paste this code into chrome console. Button.cooldown = function (btn) {
var cd = btn.data("cooldown");
if(cd > 0) {
$('div.cooldown', btn).stop(true, true).width("100%").animate({width: '0%'}, cd * 10, 'linear', function() {
var b = $(this).closest('.button');
b.data('onCooldown', false);
if(!b.data('disabled')) {
b.removeClass('disabled');
}
});
btn.addClass('disabled');
btn.data('onCooldown', true);
}
} |
|