(7df498c13) Fixed: Doors being weldable in the tutorial with no access to crowbar or info on how to open shut doors, thus causing the player to get stuck

This commit is contained in:
Joonas Rikkonen
2019-06-09 17:40:45 +03:00
parent 39a9e1cc72
commit 8e65bd62b9
4 changed files with 19 additions and 2 deletions
@@ -126,6 +126,20 @@ namespace Barotrauma.Tutorials
idCard.AddTag("com");
idCard.AddTag("eng");
List<Entity> entities = Entity.GetEntityList();
for (int i = 0; i < entities.Count; i++)
{
if (entities[i] is Item)
{
Door door = (entities[i] as Item).GetComponent<Door>();
if (door != null)
{
door.CanBeWelded = false;
}
}
}
tutorialCoroutine = CoroutineManager.StartCoroutine(UpdateState());
}