From ce39dae000c609f7686fa1efb3b48a53b29d2adf Mon Sep 17 00:00:00 2001 From: user Date: Mon, 10 Jun 2024 18:31:35 +0300 Subject: [PATCH] Following the addition of break cloak at set depletion persent, added a non-debug display of that level, so that player can know how soon cloak auto-breaks. --- 1.5/Languages/English/Keyed/Gameplay.xml | 1 + Source/1.5/Building/Building_ShipCloakingDevice.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/1.5/Languages/English/Keyed/Gameplay.xml b/1.5/Languages/English/Keyed/Gameplay.xml index 3d81588..44e0729 100644 --- a/1.5/Languages/English/Keyed/Gameplay.xml +++ b/1.5/Languages/English/Keyed/Gameplay.xml @@ -400,6 +400,7 @@ Use this vent to expel superheated air from the room. The process will damage your ship's life-support system(s) based on the size of the room, split evenly between systems (currently {0} each).\n\nAny non-EVA-capable pawns in the room will suffer explosive decompression! Air is not superheated No active life support + Depletion level: {0} Break cloak at depletion level When the ship's coolant depletion reaches this percentage, disable cloaking device(s) so that it can recover. Cloaking devices deactivated due to coolant depletion! diff --git a/Source/1.5/Building/Building_ShipCloakingDevice.cs b/Source/1.5/Building/Building_ShipCloakingDevice.cs index 4241965..5b9bf87 100644 --- a/Source/1.5/Building/Building_ShipCloakingDevice.cs +++ b/Source/1.5/Building/Building_ShipCloakingDevice.cs @@ -80,6 +80,10 @@ public override string GetInspectString() { stringBuilder.AppendLine(inspectString); } + if (heatComp.myNet != null) + { + stringBuilder.AppendLine(TranslatorFormattedStringExtensions.Translate("SoS.HeatDepletionLevel", (heatComp.myNet.DepletionRatio).ToString("P0"))); + } if (active) { stringBuilder.AppendLine("Active");//TranslatorFormattedStringExtensions.Translate(