Release 1.9.8.0 - Summer Update Hotfix 1

This commit is contained in:
Regalis11
2025-07-01 11:40:07 +03:00
parent fd34473640
commit 6661bb607b
18 changed files with 109 additions and 33 deletions
@@ -113,6 +113,7 @@ namespace Barotrauma
public override void Apply(ActionType type, float deltaTime, Entity entity, IReadOnlyList<ISerializableEntity> targets, Vector2? worldPosition = null)
{
if (this.type != type) { return; }
if (Disabled) { return; }
if (ShouldWaitForInterval(entity, deltaTime)) { return; }
if (!HasRequiredItems(entity)) { return; }
if (delayType == DelayTypes.ReachCursor && Character.Controlled == null) { return; }
@@ -853,6 +853,9 @@ namespace Barotrauma
}
}
/// <summary>
/// Disabled effects will no longer be executed. Used to make <see cref="oneShot">oneshot</> effects only execute once.
/// </summary>
public bool Disabled { get; private set; }
public static StatusEffect Load(ContentXElement element, string parentDebugName)