updated
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
local maxValue = 80
|
||||
local minValue = 60
|
||||
local minCoolant = 30
|
||||
|
||||
local function getValue()
|
||||
return (reactor.getCoolantFilledPercentage() or 0) * 100
|
||||
return (reactor.getCoolantFilledPercentage() or 1) * 100
|
||||
end
|
||||
|
||||
local function checkCoolantLevel()
|
||||
@@ -12,6 +13,9 @@ local function checkCoolantLevel()
|
||||
elseif coolantLevel > minValue then
|
||||
-- print("Coolant approaching minimum, slowly stepping down burn rate.")
|
||||
-- burnRateDriver.slowStepDown()
|
||||
elseif coolantLevel <= minCoolant then
|
||||
print("Critical Warning: Coolant below minimum safe level! SCRAMMING reactor.")
|
||||
reactor.scram()
|
||||
elseif coolantLevel <= minValue then
|
||||
print("Warning: Coolant below minimum! Stepping down burn rate.")
|
||||
burnRateDriver.stepDown()
|
||||
|
||||
Reference in New Issue
Block a user