v1.7.7.0 (Winter Update 2024)

This commit is contained in:
Regalis11
2024-12-11 13:26:13 +02:00
parent 7d5b7a310a
commit f6349b2175
256 changed files with 4794 additions and 1653 deletions
@@ -482,6 +482,7 @@ namespace Barotrauma
{
Random rand = new MTRandom(ToolBox.StringToInt(levelSeed));
LocationType locationType = LocationType.Prefabs
.OrderBy(lt => lt.UintIdentifier)
.Where(lt => missionPrefab.AllowedLocationTypes.Any(m => m == lt.Identifier))
.GetRandom(rand)!;
dummyLocations = CreateDummyLocations(levelSeed, locationType);
@@ -1563,13 +1564,15 @@ namespace Barotrauma
if (kvp.Key.TryUnwrap(out AccountId? accountId))
{
permadeathsElement.Add(
new XElement("account"),
new XElement("account",
new XAttribute("id", accountId.StringRepresentation),
new XAttribute("permadeathcount", kvp.Value));
new XAttribute("permadeathcount", kvp.Value)));
}
}
rootElement.Add(permadeathsElement);
rootElement.Add(new XAttribute("respawnmode", GameMain.NetworkMember?.ServerSettings?.RespawnMode ?? RespawnMode.None));
((CampaignMode)GameMode).Save(doc.Root, isSavingOnLoading);
doc.SaveSafe(filePath, throwExceptions: true);