Release 1.11.4.1 (Winter Update)

This commit is contained in:
Markus Isberg
2025-12-08 14:56:47 +00:00
parent 21e34e5cd8
commit 598966f200
121 changed files with 1614 additions and 819 deletions
@@ -1,9 +1,9 @@
using Microsoft.Xna.Framework;
using Barotrauma.Extensions;
using Barotrauma.Items.Components;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using Barotrauma.Extensions;
using Barotrauma.Items.Components;
namespace Barotrauma
{
@@ -22,6 +22,9 @@ namespace Barotrauma
private GUIButton createEventButton;
public LevelGenerationParams BackgroundParams { get; private set; }
public Vector2 WaterParticleOffset;
public override void Start()
{
base.Start();
@@ -68,6 +71,12 @@ namespace Barotrauma
}
};
}
if (Level.Loaded == null)
{
BackgroundParams ??= LevelGenerationParams.LevelParams.Where(lp => !lp.AllowedBiomeIdentifiers.Contains("endzone")).GetRandom(Rand.RandSync.Unsynced);
GameMain.LightManager.AmbientLight = BackgroundParams.AmbientLightColor;
}
}
public override void AddToGUIUpdateList()
@@ -93,6 +102,8 @@ namespace Barotrauma
sEvent.Update(deltaTime);
}
}
BackgroundParams?.UpdateWaterParticleOffset(ref WaterParticleOffset, BackgroundParams.WaterParticleVelocity, deltaTime);
}
private void GenerateOutpost(Submarine submarine)