diff --git a/game.js b/game.js index e8b1be7..9683668 100644 --- a/game.js +++ b/game.js @@ -4003,6 +4003,8 @@ function startGame(e) { } } + registerActions(); + if (!macro.hasTail) { macro.tailCount = 0; } @@ -4381,7 +4383,12 @@ function registerActions() { buttons.forEach( function(button) { let name = button.id; name = name.replace(/button-action-/,""); - button.addEventListener("click", function() { window[name](); }); + if (macro.difficulty > 0) { + button.addEventListener("click", function() { cooldown_start(name); window[name](); }); + } else { + button.addEventListener("click", function() { window[name](); }); + } + }); } @@ -4469,8 +4476,6 @@ window.addEventListener('load', function(event) { element.addEventListener("click",actionTab); }); - registerActions(); - document.getElementById("button-look").addEventListener("click",look); document.getElementById("button-stroll").addEventListener("click",toggle_auto); document.getElementById("button-numbers").addEventListener("click",toggle_numbers); diff --git a/stroll.html b/stroll.html index e9f042f..e49906a 100644 --- a/stroll.html +++ b/stroll.html @@ -335,9 +335,7 @@
Welcome to Stroll 0.7.0
This game features 18+ content
- - - +Changelog - Telegram - Discord
Stroll is a text-based macro game. Stomp things, eat things, abuse things - then grow larger and do it all over again.
@@ -448,6 +446,22 @@