Medical scanner shows husk infections

This commit is contained in:
Joonas Rikkonen
2017-08-10 20:30:48 +03:00
parent f40d244deb
commit 75a4d641bf

View File

@@ -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);