(1a67da748) Made more space for the cause of death descriptions in the RoundSummary panel

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:59:39 +03:00
parent 7c61c5e179
commit 8619135761
10 changed files with 130 additions and 41 deletions
@@ -715,6 +715,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);