From 75a4d641bf97660ac7c43535bdc55efe068d97a7 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 10 Aug 2017 20:30:48 +0300 Subject: [PATCH] Medical scanner shows husk infections --- .../Source/Items/Components/StatusHUD.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Components/StatusHUD.cs b/Barotrauma/BarotraumaClient/Source/Items/Components/StatusHUD.cs index 412db61c7..1d3622731 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Components/StatusHUD.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Components/StatusHUD.cs @@ -46,11 +46,21 @@ namespace Barotrauma.Items.Components { int bleedingTextIndex = MathHelper.Clamp((int)Math.Floor(target.Bleeding / 4.0f) * BleedingTexts.Length, 0, BleedingTexts.Length - 1); texts.Add(BleedingTexts[bleedingTextIndex]); - } + } + + if (target.huskInfection != null) + { + if (target.huskInfection.State != HuskInfection.InfectionState.Transition) + { + texts.Add("Velonaceps calyx infection"); + } + else if (target.huskInfection.State != HuskInfection.InfectionState.Active) + { + texts.Add("Advanced Velonaceps calyx infection"); + } + } } - - foreach (string text in texts) { GUI.DrawString(spriteBatch, hudPos, text, Color.LightGreen, Color.Black * 0.7f, 2);