mirror of
https://gitlab.com/Oreolek/salet.git
synced 2024-07-04 07:45:03 +03:00
Turned off character saving.
Don't save the character so the inventory won't be duplicated.
This commit is contained in:
parent
6dd06d2b89
commit
1059b0997c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue