mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixes; MAX LEVEL REQUIRED
This commit is contained in:
parent
98cf0b002b
commit
675cde7321
@ -9,16 +9,22 @@ coolantLossESTOP = true
|
|||||||
hotCoolantESTOP = true
|
hotCoolantESTOP = true
|
||||||
|
|
||||||
local const = {}
|
local const = {}
|
||||||
|
local initialized = {}
|
||||||
local mt = {
|
local mt = {
|
||||||
__newindex = function(t, k, v)
|
__newindex = function(t, k, v)
|
||||||
error(k .. " is a constant")
|
if not initialized[k] then
|
||||||
|
rawset(t, k, v)
|
||||||
|
initialized[k] = true
|
||||||
|
else
|
||||||
|
error(k .. " is a constant")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
setmetatable(const, mt)
|
setmetatable(const, mt)
|
||||||
|
|
||||||
local const.fullCoreHeatMAX = 9000000
|
const.fullCoreHeatMAX = 9000000
|
||||||
local const.coldCoolantLevelMIN = 10000
|
const.coldCoolantLevelMIN = 10000
|
||||||
local const.hotCoolantLevelMAX -- = what?
|
const.hotCoolantLevelMAX -- = what?
|
||||||
|
|
||||||
runSig = true
|
runSig = true
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user