Docking ports have a power connector that can be used for distributing power between docked subs, already connected wires in respawn shuttles and the tutorial subs can't be disconnected, flares burn longer

This commit is contained in:
Regalis
2016-08-13 17:52:35 +03:00
parent d5cd6f83ae
commit ec59c47041
8 changed files with 115 additions and 45 deletions
@@ -24,6 +24,8 @@ namespace Barotrauma.Items.Components
private static Wire draggingWire;
private static int? selectedNodeIndex;
public bool Hidden, Locked;
public Connection[] Connections
{
get { return connections; }
@@ -109,7 +111,7 @@ namespace Barotrauma.Items.Components
}
}
item.Submarine = newConnection.Item.Submarine;
if (item.body != null) item.Submarine = newConnection.Item.Submarine;
for (int i = 0; i < 2; i++)
{
@@ -149,7 +151,7 @@ namespace Barotrauma.Items.Components
}
if (item.Container != null) item.Container.RemoveContained(this.item);
item.body.Enabled = false;
if (item.body != null) item.body.Enabled = false;
IsActive = false;