1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00
Gerkiz 1d8cc950e3 minor changes to chronosphere
one table to rule them all
2020-04-24 21:07:41 +02:00

65 lines
1.6 KiB
Lua

-- on table to rule them all!
local Global = require 'utils.global'
local Event = require 'utils.event'
local chronosphere = {}
local Public = {}
Global.register(
chronosphere,
function(tbl)
chronosphere = tbl
end
)
function Public.reset_table()
for k, v in pairs(chronosphere) do
chronosphere[k] = nil
end
chronosphere.computermessage = 0
chronosphere.config = {}
chronosphere.lab_cells = {}
chronosphere.flame_boots = {}
chronosphere.chronojumps = 0
chronosphere.game_lost = true
chronosphere.game_won = false
chronosphere.max_health = 10000
chronosphere.health = 10000
chronosphere.poisontimeout = 0
chronosphere.chronotimer = 0
chronosphere.passivetimer = 0
chronosphere.passivejumps = 0
chronosphere.chrononeeds = 2000
chronosphere.mainscore = 0
chronosphere.active_biters = {}
chronosphere.unit_groups = {}
chronosphere.biter_raffle = {}
chronosphere.dangertimer = 1200
chronosphere.dangers = {}
chronosphere.looted_nukes = 0
chronosphere.offline_players = {}
chronosphere.nextsurface = nil
chronosphere.upgrades = {}
chronosphere.outchests = {}
chronosphere.upgradechest = {}
chronosphere.fishchest = {}
chronosphere.comfylatron = {}
chronosphere.acumulators = {}
chronosphere.comfychests = {}
chronosphere.comfychests2 = {}
chronosphere.locomotive_cargo = {}
chronosphere.planet = {}
end
function Public.get_table()
return chronosphere
end
local on_init = function ()
Public.reset_table()
end
Event.on_init(on_init)
return Public