(34738e4a9) Waypoint fixes (nodes at the hatches not connecting outside, outside nodes going through exterior wall pieces and turrets). TODO: improve the waypoint generation so this kind of manual fixes aren't needed

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:36:18 +03:00
parent a8b1da225b
commit 8d155d8bdd
18 changed files with 168 additions and 299 deletions
@@ -810,6 +810,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);