mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Final commit (max level added)
This commit is contained in:
parent
675cde7321
commit
d7f859ecab
@ -24,7 +24,7 @@ setmetatable(const, mt)
|
|||||||
|
|
||||||
const.fullCoreHeatMAX = 9000000
|
const.fullCoreHeatMAX = 9000000
|
||||||
const.coldCoolantLevelMIN = 10000
|
const.coldCoolantLevelMIN = 10000
|
||||||
const.hotCoolantLevelMAX -- = what?
|
const.hotCoolantLevelMAX = 0.5
|
||||||
|
|
||||||
runSig = true
|
runSig = true
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ while (runSig == true) do
|
|||||||
prevHotCoolantFlow = hotCoolantLevel
|
prevHotCoolantFlow = hotCoolantLevel
|
||||||
|
|
||||||
fullCoreHeat, fullHullHeat = call(pwrController, "getHeat")
|
fullCoreHeat, fullHullHeat = call(pwrController, "getHeat")
|
||||||
coldCoolantLevel, _, hotCoolantLevel, _ = call(pwrController, "getCoolantInfo")
|
coldCoolantLevel, _, hotCoolantLevel, maxHotCoolantLevel = call(pwrController, "getCoolantInfo")
|
||||||
|
|
||||||
coldCoolantOutflow = coldCoolantLevel - prevCoolantFlow
|
coldCoolantOutflow = coldCoolantLevel - prevCoolantFlow
|
||||||
hotCoolantOutflow = hotCoolantLevel - prevHotCoolantFlow
|
hotCoolantOutflow = hotCoolantLevel - prevHotCoolantFlow
|
||||||
@ -278,7 +278,7 @@ while (runSig == true) do
|
|||||||
component.proxy(pwrController).setLevel(100)
|
component.proxy(pwrController).setLevel(100)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (hotCoolantESTOP == true) and (hotCoolantLevel) > const.hotCoolantLevelMAX then
|
if (hotCoolantESTOP == true) and (hotCoolantLevel) > const.hotCoolantLevelMAX * maxHotCoolantLevel then
|
||||||
component.proxy(pwrController).setLevel(100)
|
component.proxy(pwrController).setLevel(100)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user