diff --git a/Barotrauma/BarotraumaClient/Source/Map/Structure.cs b/Barotrauma/BarotraumaClient/Source/Map/Structure.cs index b1ea776e0..f5739d49e 100644 --- a/Barotrauma/BarotraumaClient/Source/Map/Structure.cs +++ b/Barotrauma/BarotraumaClient/Source/Map/Structure.cs @@ -322,6 +322,17 @@ namespace Barotrauma -Bodies[i].Rotation, Color.White); } } + + if (SectionCount > 0 && HasBody) + { + for (int i = 0; i < SectionCount; i++) + { + var textPos = SectionPosition(i, true); + textPos.Y = -textPos.Y; + GUI.DrawString(spriteBatch, textPos, "Damage: " + (int)((GetSection(i).damage / Health) * 100f) + "%", Color.Yellow); + } + } + AiTarget?.Draw(spriteBatch); } }