Medical scanner shows husk infections
This commit is contained in:
@@ -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);
|
int bleedingTextIndex = MathHelper.Clamp((int)Math.Floor(target.Bleeding / 4.0f) * BleedingTexts.Length, 0, BleedingTexts.Length - 1);
|
||||||
texts.Add(BleedingTexts[bleedingTextIndex]);
|
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)
|
foreach (string text in texts)
|
||||||
{
|
{
|
||||||
GUI.DrawString(spriteBatch, hudPos, text, Color.LightGreen, Color.Black * 0.7f, 2);
|
GUI.DrawString(spriteBatch, hudPos, text, Color.LightGreen, Color.Black * 0.7f, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user