(6c6831abf) Some new sounds, fixed damage sounds not being played if no damage modifiers are applied

This commit is contained in:
Joonas Rikkonen
2019-04-15 13:42:08 +03:00
parent 3e0d4f5122
commit 918fac9e5e
6 changed files with 50 additions and 3 deletions
@@ -413,6 +413,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