updated
This commit is contained in:
@@ -19,14 +19,14 @@ local function watch()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function stepUp()
|
function stepUp()
|
||||||
local value = getValue()
|
local value = getValue()
|
||||||
if value < max then
|
if value < max then
|
||||||
reactor.setBurnRate(value + rateStep)
|
reactor.setBurnRate(value + rateStep)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function stepDown()
|
function stepDown()
|
||||||
local value = getValue()
|
local value = getValue()
|
||||||
if value > min then
|
if value > min then
|
||||||
reactor.setBurnRate(value - rateStep)
|
reactor.setBurnRate(value - rateStep)
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ local function watch()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function checkCoolantLevel()
|
function checkCoolantLevel()
|
||||||
local coolantLevel = getValue()
|
local coolantLevel = getValue()
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function report()
|
local function report()
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ local function watch()
|
|||||||
checkTemperature()
|
checkTemperature()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local function checkTemperature()
|
function checkTemperature()
|
||||||
local temperature = getValue()
|
local temperature = getValue()
|
||||||
local upperThreshold = max - 20
|
local upperThreshold = max - 20
|
||||||
local lowerThreshold = min + 20
|
local lowerThreshold = min + 20
|
||||||
|
|||||||
Reference in New Issue
Block a user