Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -882,6 +882,16 @@ namespace Barotrauma
/// Its opacity is controlled by the active effect's MinAfflictionOverlayAlphaMultiplier and MaxAfflictionOverlayAlphaMultiplier
/// </summary>
public readonly Sprite AfflictionOverlay;
/// <summary>
/// The speed of the affliction overlay animation.
/// Only applicable with AfflictionOverlayAnimated, and the overlay has to be a spritesheet so there's something to animate.
/// </summary>
public float AfflictionOverlayAnimSpeed
{
get;
set;
}
public ImmutableDictionary<Identifier, float> TreatmentSuitabilities
{
@@ -1005,6 +1015,10 @@ namespace Barotrauma
case "afflictionoverlay":
AfflictionOverlay = new Sprite(subElement);
break;
case "afflictionoverlayanimated":
AfflictionOverlay = new SpriteSheet(subElement);
AfflictionOverlayAnimSpeed = subElement.GetAttributeFloat("animspeed", 1.0f);
break;
case "statvalue":
DebugConsole.ThrowError($"Error in affliction \"{Identifier}\" - stat values should be configured inside the affliction's effects.",
contentPackage: element.ContentPackage);