17 lines
420 B
Lua
17 lines
420 B
Lua
|
completion_tracker={}
|
||
|
add(modules,completion_tracker)
|
||
|
|
||
|
function completion_tracker:init()
|
||
|
cartdata("pyrex_fortunesfoundation_1")
|
||
|
end
|
||
|
|
||
|
function completion_tracker:get_completion_level()
|
||
|
return dget(0)
|
||
|
end
|
||
|
function completion_tracker:advance_completion_level(clevel)
|
||
|
dset(0,max(dget(0), clevel))
|
||
|
end
|
||
|
|
||
|
function completion_tracker:should_show_tutorial()
|
||
|
return self:get_completion_level() < tutorial.completion_stage
|
||
|
end
|