(5b2ce3831) Restart the credits sequence when re-selecting the credits tab, some changes to the credit texts

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:48:53 +03:00
parent 3bb405bc9b
commit 97b6888274
13 changed files with 377 additions and 71 deletions
@@ -563,6 +563,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);