Unstable 1.2.1.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -43,7 +43,8 @@ namespace Barotrauma
|
||||
Priority = element.GetAttributeFloat("priority", -1f);
|
||||
if (Priority < 0)
|
||||
{
|
||||
DebugConsole.AddWarning($"The 'priority' attribute is missing from the the item repair priorities definition in {element} of {file.Path}.");
|
||||
DebugConsole.AddWarning($"The 'priority' attribute is missing from the the item repair priorities definition in {element} of {file.Path}.",
|
||||
ContentPackage);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user