diff --git a/game.js b/game.js index f249de4..4098e69 100644 --- a/game.js +++ b/game.js @@ -3430,6 +3430,17 @@ function registerActions() { }); } +function debugLog() { + console.log("Your character settings:"); + console.log(JSON.stringify(generateSettings())); + console.log("Current macro state:"); + console.log(JSON.stringify( macro, function( key, value) { + if( key == 'owner') { return "owner";} + else {return value;} + })); + alert("Debug info has been logged to console. Press F12, click \"Console\", and copy all the text") +} + window.addEventListener('load', function(event) { (function() { @@ -3467,6 +3478,7 @@ window.addEventListener('load', function(event) { document.getElementById("button-dark-mode-game").addEventListener("click",toggleDarkMode); document.getElementById("button-stats").addEventListener("click",showStats); + document.getElementById("button-debug-log").addEventListener("click",debugLog); document.getElementById("button-amount-1").addEventListener("click",function() { grow_pick(1); }); document.getElementById("button-amount-5").addEventListener("click",function() { grow_pick(5); }); diff --git a/stroll.html b/stroll.html index c096365..455ac27 100644 --- a/stroll.html +++ b/stroll.html @@ -79,6 +79,7 @@ +