(8a177f8bd) Fixed remora airlocks and refreshed drone. Added higher res preview pics to remora, typhon and bunyip

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:28:39 +03:00
parent 7c167257b1
commit d9ab57e2ae
15 changed files with 330 additions and 141 deletions
@@ -829,6 +829,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);