(943a1e25b) Report all visible hulls, but add a dialogue line and icon only for current hull.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:50:42 +03:00
parent 437465690b
commit 1e41ed6b63
12 changed files with 484 additions and 101 deletions
@@ -677,6 +677,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);