(cf495e03c) Check the visibility to the target when engaging (the distance is not enough, if there's something blocking the line of sight).

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:20:45 +03:00
parent 3d7a113d75
commit 88de435487
12 changed files with 297 additions and 138 deletions
@@ -436,6 +436,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