Since they used localStorage, you can modify the state of your character.
If you want the best weapons in the game, the sword is called 'goldensword' and the armor is call 'goldenarmor'.
If you want the best weapons in the game, the sword is called 'goldensword' and the armor is call 'goldenarmor'.
I guess the OP's comment of local storage was also to point out the 'flaw' since it is for a multiplayer game.
localStorage.data = localStorage.data.replace('sword1', goldensword')
But it just reverts after I type that into the console. Could someone explain how it works?
localStorage.data = JSON.stringify((function (data) { data.player.weapon = 'goldensword'; return data })(JSON.parse(localStorage.data)))
and then reloaded the page, and I had the golden sword.It be fun to show off if someone figured it out.