(914a15437) Fixed: Checking for jobs using name instead of the prefab identifier

This commit is contained in:
Joonas Rikkonen
2019-04-03 16:22:26 +03:00
parent 0ecfc426ff
commit f676e8c67e
2 changed files with 5 additions and 1 deletions

View File

@@ -627,7 +627,7 @@ namespace Barotrauma.Tutorials
job = job.ToLowerInvariant();
for (int i = 0; i < crew.Count; i++)
{
if (crew[i].Info.Job.Name.ToLowerInvariant() == job) return crew[i];
if (crew[i].Info.Job.Prefab.Identifier.ToLowerInvariant() == job) return crew[i];
}
return null;

View File

@@ -26,6 +26,10 @@ namespace Barotrauma.Items.Components
private float blinkTimer;
private bool itemLoaded;
private float blinkTimer;
public PhysicsBody ParentBody;
[Editable(MinValueFloat = 0.0f, MaxValueFloat = 2048.0f), Serialize(100.0f, true)]