forked from pyrex/chameleonic
Compare commits
2 Commits
a7755cf223
...
8fe5d4dd43
Author | SHA1 | Date | |
---|---|---|---|
8fe5d4dd43 | |||
04d2a680dd |
@ -1927,24 +1927,23 @@ function persist:init0()
|
||||
cartdata("ulimate_lizard_total_destruction_0_1")
|
||||
self.init0 = self.read
|
||||
self:read()
|
||||
self.ready=true
|
||||
end
|
||||
|
||||
function persist:read()
|
||||
self.ready=false
|
||||
local m = dget(0) == 0
|
||||
self.music = m
|
||||
if m then music_on() else music_off() end
|
||||
self.max_level = dget(1)
|
||||
self.recent_level = dget(2)
|
||||
self.ready=true
|
||||
end
|
||||
|
||||
function persist:wipe()
|
||||
self.ready=false
|
||||
for i=0,64 do
|
||||
dset(i,0)
|
||||
end
|
||||
self:read()
|
||||
self.ready=true
|
||||
end
|
||||
|
||||
function persist:lvlstart()
|
||||
|
Loading…
Reference in New Issue
Block a user