1
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet.git synced 2024-07-02 06:45:06 +03:00

Turned off character saving.

Don't save the character so the inventory won't be duplicated.
This commit is contained in:
Alexander Yakovlev 2016-03-21 08:21:47 +07:00
parent 6dd06d2b89
commit 1059b0997c

View file

@ -360,8 +360,7 @@ class Salet
# Save the game.
localStorage.setItem(@getSaveId(), JSON.stringify({
progress: @progress,
character: @character
progress: @progress
}))
# Switch the button highlights.
@ -373,8 +372,6 @@ class Salet
@loadGame = (saveFile) =>
@progress = saveFile.progress
@character = new Character
for index, value of saveFile.character
@character[index] = value
@rnd = new Random(@progress.seed)