Release 1.10.5.0 - Autumn Update 2025
This commit is contained in:
@@ -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) :
|
||||
|
||||
+8
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user