Release 1.10.5.0 - Autumn Update 2025

This commit is contained in:
Regalis11
2025-09-17 13:44:21 +03:00
parent d13836ce87
commit caa0326cf8
120 changed files with 2584 additions and 635 deletions
@@ -2866,10 +2866,11 @@ namespace Barotrauma
}
contextualOrders.RemoveAll(o => !IsOrderAvailable(o));
var offsets = MathUtils.GetPointsOnCircumference(Vector2.Zero, nodeDistance, contextualOrders.Count, MathHelper.ToRadians(90f + 180f / contextualOrders.Count));
bool disableNode = !CanCharacterBeHeard();
bool canCharacterBeHeard = !CanCharacterBeHeard();
for (int i = 0; i < contextualOrders.Count; i++)
{
var order = contextualOrders[i];
bool disableNode = !canCharacterBeHeard && !order.TargetAllCharacters;
int hotkey = (i + 1) % 10;
var component = order.Option.IsEmpty ?
CreateOrderNode(nodeSize, commandFrame.RectTransform, offsets[i].ToPoint(), order, hotkey, disableNode: disableNode, checkIfOrderCanBeHeard: false) :
@@ -258,9 +258,9 @@ namespace Barotrauma
{
SlideshowPlayer = new SlideshowPlayer(GUICanvas.Instance, slideshow);
}
var outpost = GameMain.GameSession.Level.StartOutpost;
var borders = outpost.GetDockedBorders();
borders.Location += outpost.WorldPosition.ToPoint();
var subToFocusTo = GameMain.GameSession.Level.StartOutpost ?? Submarine.MainSub;
var borders = subToFocusTo.GetDockedBorders();
borders.Location += subToFocusTo.WorldPosition.ToPoint();
GameMain.GameScreen.Cam.Position = new Vector2(borders.X + borders.Width / 2, borders.Y - borders.Height / 2);
float startZoom = 0.8f /
((float)Math.Max(borders.Width, borders.Height) / (float)GameMain.GameScreen.Cam.Resolution.X);
@@ -646,9 +646,12 @@ namespace Barotrauma
modeElement.Add(GameMain.GameSession?.EventManager.Save());
}
foreach (Identifier unlockedRecipe in GameMain.GameSession.UnlockedRecipes)
foreach ((CharacterTeamType team, Identifier unlockedRecipe) in GameMain.GameSession.UnlockedRecipes)
{
modeElement.Add(new XElement("unlockedrecipe", new XAttribute("identifier", unlockedRecipe)));
modeElement.Add(
new XElement("unlockedrecipe",
new XAttribute("identifier", unlockedRecipe),
new XAttribute("team", team)));
}
//save and remove all items that are in someone's inventory so they don't get included in the sub file as well