...
 
Commits (2)
......@@ -68,6 +68,12 @@ for _, zone in pairs(G.N) do
zone.trabajar_va = tonumber(zone.trabajar_va) or 0
zone.trabajar_viene = tonumber(zone.trabajar_viene) or 0
end
for _, es in pairs(G.E) do
for _, e in pairs(es) do
e.trabajan = tonumber(e.trabajan) or 0
e.estudian = tonumber(e.estudian) or 0
end
end
-- Reset state for new run
M.initialize = function ( c )
......
......@@ -124,7 +124,7 @@ M.initialize = function ( c )
lib = conf.lib
M.state_count = {E=0, I=0, R=0, quarantined=0}
w_states('t', 'E', 'I', 'R', 'quarantined')
conf.w_states('t', ' ', 'E', ' ', 'I', ' ', 'R', ' ', 'quarantined')
end
return M
\ No newline at end of file
......@@ -180,7 +180,7 @@ M.initialize = function ( c )
M.state_count = {L=0, P=0, I=0, R=0, quarantined=0}
w_states('t', 'L', 'P', 'I', 'R', 'quarantined')
conf.w_states('t', ' ', 'L', ' ', 'P', ' ', 'I', ' ', 'R', ' ', 'quarantined')
end
return M
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.