v1.2.6.0 (Winter Update)

This commit is contained in:
Regalis11
2023-12-14 16:11:27 +02:00
parent af8cc89fce
commit b91e85559d
375 changed files with 7771 additions and 2874 deletions
@@ -47,13 +47,14 @@ namespace Barotrauma
}
}
public Job(XElement element)
public Job(ContentXElement element)
{
Identifier identifier = element.GetAttributeIdentifier("identifier", "");
JobPrefab p;
if (!JobPrefab.Prefabs.ContainsKey(identifier))
{
DebugConsole.ThrowError($"Could not find the job {identifier}. Giving the character a random job.");
DebugConsole.ThrowError($"Could not find the job {identifier}. Giving the character a random job.",
contentPackage: element.ContentPackage);
p = JobPrefab.Random(Rand.RandSync.Unsynced);
}
else