Build 0.18.13.0

This commit is contained in:
Markus Isberg
2022-07-01 12:16:36 +09:00
parent 8e6c601162
commit 497045de7e
79 changed files with 717 additions and 361 deletions
@@ -2409,17 +2409,20 @@ namespace Barotrauma.Networking
campaign?.CargoManager.InitPurchasedIDCards();
foreach (Submarine sub in Submarine.MainSubs)
if (campaign == null || campaign.IsFirstRound)
{
if (sub == null) { continue; }
List<PurchasedItem> spawnList = new List<PurchasedItem>();
foreach (KeyValuePair<ItemPrefab, int> kvp in serverSettings.ExtraCargo)
foreach (Submarine sub in Submarine.MainSubs)
{
spawnList.Add(new PurchasedItem(kvp.Key, kvp.Value, buyer: null));
}
if (sub == null) { continue; }
CargoManager.CreateItems(spawnList, sub, cargoManager: null);
List<PurchasedItem> spawnList = new List<PurchasedItem>();
foreach (KeyValuePair<ItemPrefab, int> kvp in serverSettings.ExtraCargo)
{
spawnList.Add(new PurchasedItem(kvp.Key, kvp.Value, buyer: null));
}
CargoManager.CreateItems(spawnList, sub, cargoManager: null);
}
}
TraitorManager = null;