From d7f859ecab548eab1b9fbd60931bc3af0cc3c929 Mon Sep 17 00:00:00 2001 From: rost Date: Mon, 8 Sep 2025 16:03:40 +0200 Subject: [PATCH] Final commit (max level added) --- .../assets/hbm/disks/pwrangler/usr/bin/PWRangler.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/assets/hbm/disks/pwrangler/usr/bin/PWRangler.lua b/src/main/resources/assets/hbm/disks/pwrangler/usr/bin/PWRangler.lua index 8c2853af4..09fe901aa 100644 --- a/src/main/resources/assets/hbm/disks/pwrangler/usr/bin/PWRangler.lua +++ b/src/main/resources/assets/hbm/disks/pwrangler/usr/bin/PWRangler.lua @@ -24,7 +24,7 @@ setmetatable(const, mt) const.fullCoreHeatMAX = 9000000 const.coldCoolantLevelMIN = 10000 -const.hotCoolantLevelMAX -- = what? +const.hotCoolantLevelMAX = 0.5 runSig = true @@ -242,7 +242,7 @@ while (runSig == true) do prevHotCoolantFlow = hotCoolantLevel fullCoreHeat, fullHullHeat = call(pwrController, "getHeat") - coldCoolantLevel, _, hotCoolantLevel, _ = call(pwrController, "getCoolantInfo") + coldCoolantLevel, _, hotCoolantLevel, maxHotCoolantLevel = call(pwrController, "getCoolantInfo") coldCoolantOutflow = coldCoolantLevel - prevCoolantFlow hotCoolantOutflow = hotCoolantLevel - prevHotCoolantFlow @@ -278,7 +278,7 @@ while (runSig == true) do component.proxy(pwrController).setLevel(100) end - if (hotCoolantESTOP == true) and (hotCoolantLevel) > const.hotCoolantLevelMAX then + if (hotCoolantESTOP == true) and (hotCoolantLevel) > const.hotCoolantLevelMAX * maxHotCoolantLevel then component.proxy(pwrController).setLevel(100) end