Good game, but it could benefit from optimisation.
at each version the strip action takes more an more time.
I'd love to improve the performance, but unfortunately the html is obfuscated
* * *
Found the culprit*s* it's a lot of json parse/stringify on saveData (in local storage), even some stringify(parse(savedata))
made some changes to call setSave(obj) for when saving to saveData, and getSave()
function getSave() {
if( !window.saveData ) window.saveData = JSON.parse( localStorage.getItem("savedata")) || {};
return window.saveData
}
function setSave(newSave) {
window.saveData = newSave
localStorage.setItem( "savedata", JSON.stringify(newSave));
}
so I only parse the data if we don't have it, and update the global at the same time i update the storage.
the game is WAY more responsive.
I also tweaked it a bit to allow total submission to 199 (still cap to 100 for 1 npc)