(f3bfe1ac4) Fix damage priority calculation.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:10:25 +03:00
parent 9cc9137fff
commit cdeb6d40b3
12 changed files with 169 additions and 28 deletions
@@ -24,6 +24,8 @@ namespace Barotrauma
private bool removed;
private bool removed;
#if CLIENT
private List<Decal> burnDecals = new List<Decal>();
#endif
@@ -432,6 +432,25 @@ namespace Barotrauma
}
}
public string DisplayName
{
get;
private set;
}
private string roomName;
[Editable, Serialize("", true, translationTextTag: "RoomName.")]
public string RoomName
{
get { return roomName; }
set
{
if (roomName == value) { return; }
roomName = value;
DisplayName = TextManager.Get(roomName, returnNull: true) ?? roomName;
}
}
public override Rectangle Rect
{
get