v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -850,9 +850,9 @@ namespace Barotrauma
Gap g = new Gap(rect, isHorizontal, submarine, id: idRemap.GetOffsetId(element))
{
linkedToID = new List<ushort>(),
Layer = element.GetAttributeString(nameof(Layer), null)
};
g.HiddenInGame = element.GetAttributeBool(nameof(HiddenInGame).ToLower(), g.HiddenInGame);
g.HiddenInGame = element.GetAttributeBool(nameof(HiddenInGame), g.HiddenInGame);
return g;
}
@@ -863,7 +863,8 @@ namespace Barotrauma
element.Add(
new XAttribute("ID", ID),
new XAttribute("horizontal", IsHorizontal ? "true" : "false"),
new XAttribute(nameof(HiddenInGame).ToLower(), HiddenInGame));
new XAttribute(nameof(HiddenInGame), HiddenInGame),
new XAttribute(nameof(Layer), Layer ?? string.Empty));
element.Add(new XAttribute("rect",
(int)(rect.X - Submarine.HiddenSubPosition.X) + "," +