Human AI improvements, minor UI tweaking

This commit is contained in:
Regalis
2015-11-25 16:04:51 +02:00
parent c456fa3c90
commit 4b5126675c
42 changed files with 687 additions and 321 deletions
+12 -1
View File
@@ -23,12 +23,19 @@ namespace Barotrauma
//only characters with this job will be spawned at the waypoint
private JobPrefab assignedJob;
private Hull currentHull;
public Gap ConnectedGap
{
get;
private set;
}
public Hull CurrentHull
{
get { return currentHull; }
}
public SpawnType SpawnType
{
get { return spawnType; }
@@ -396,10 +403,14 @@ namespace Barotrauma
return assignedWayPoints;
}
public override void OnMapLoaded()
{
currentHull = Hull.FindHull(this.Position);
}
public override XElement Save(XDocument doc)
{
if (MoveWithLevel) return null;
if (MoveWithLevel || spawnType == SpawnType.Path) return null;
XElement element = new XElement("WayPoint");
element.Add(new XAttribute("ID", ID),