From 61769ce925c1609193d83d7efb31e3a1e1602208 Mon Sep 17 00:00:00 2001 From: Capkirk123 Date: Sat, 9 Mar 2024 04:02:12 -0500 Subject: [PATCH] Prevent drain valve from draining hidden resources --- GameData/KerbalismConfig/Profiles/ROKerbalism.cfg | 9 +++++++++ GameData/KerbalismConfig/System/Resources.cfg | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/GameData/KerbalismConfig/Profiles/ROKerbalism.cfg b/GameData/KerbalismConfig/Profiles/ROKerbalism.cfg index 6c4c14b..13f64e9 100644 --- a/GameData/KerbalismConfig/Profiles/ROKerbalism.cfg +++ b/GameData/KerbalismConfig/Profiles/ROKerbalism.cfg @@ -2420,3 +2420,12 @@ RESOURCE_DEFINITION { @tags ^=:$:, sickbay, stress, colony, habitation } +//Don't let the fuel dump valve touch kerbalism hidden resources +@RESOURCE_DEFINITION[_*]:NEEDS[ProfileRealismOverhaul]:LAST[Kerbalism] +{ + RESOURCE_DRAIN_DEFINITION + { + isDrainable = false + showDrainFX = false + } +} diff --git a/GameData/KerbalismConfig/System/Resources.cfg b/GameData/KerbalismConfig/System/Resources.cfg index 705e6ac..ec54725 100644 --- a/GameData/KerbalismConfig/System/Resources.cfg +++ b/GameData/KerbalismConfig/System/Resources.cfg @@ -53,4 +53,11 @@ RESOURCE_DEFINITION transfer = NONE isTweakable = true volume = 1 + //we can fill shielding, so why not drain it too + RESOURCE_DRAIN_DEFINITION + { + isDrainable = true + showDrainFX = true + drainFXDefinition = particlesDraining + } }