(8b66f551f) Added new diving suit locker for implementation (rects: suit 0,0,99,338; empty 128,0,99,338)

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:02:43 +03:00
parent 6ce11d9da9
commit 7f200e0716
12 changed files with 211 additions and 257 deletions
@@ -696,6 +696,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);