(12cfc8a35) Fixed doctor tutorial attempting to find the Doctor job based on the name instead of identifier

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:45:02 +03:00
parent 3b5ae37a1a
commit 08ade4a262
10 changed files with 122 additions and 319 deletions
@@ -848,6 +848,25 @@ namespace Barotrauma.Items.Components
}
}
if (targetItem.Prefab.DeconstructItems.Any())
{
inputContainer.Inventory.RemoveItem(targetItem);
Entity.Spawner.AddToRemoveQueue(targetItem);
MoveInputQueue();
PutItemsToLinkedContainer();
}
else
{
if (outputContainer.Inventory.Items.All(i => i != null))
{
targetItem.Drop(dropper: null);
}
else
{
outputContainer.Inventory.TryPutItem(targetItem, user: null, createNetworkEvent: true);
}
}
if (targetItem.Prefab.DeconstructItems.Any())
{
inputContainer.Inventory.RemoveItem(targetItem);