(841d7d297) Enable mechanic and watchman variants. Remove watchman variant 2 and rename variant 3 as variant 2.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:53:58 +03:00
parent 5d53c9e250
commit 38240162cf
12 changed files with 320 additions and 679 deletions
@@ -639,6 +639,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);