Wifi components can't communicate with the enemy sub in combat missions. Fixes #554

This commit is contained in:
Joonas Rikkonen
2018-08-01 13:52:47 +03:00
parent 82103cf394
commit 5a6a8e2501
5 changed files with 53 additions and 11 deletions
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Barotrauma.Items.Components;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
@@ -135,6 +136,11 @@ namespace Barotrauma
if (!string.IsNullOrWhiteSpace(spawnPoint.IdCardDesc))
item.Description = spawnPoint.IdCardDesc;
}
foreach (WifiComponent wifiComponent in item.GetComponents<WifiComponent>())
{
wifiComponent.TeamID = character.TeamID;
}
if (parentItem != null) parentItem.Combine(item);