diff --git a/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs b/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs index 84a77ba6a3..77db7e26b4 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs @@ -384,6 +384,10 @@ public class GiveSkill /// public readonly bool Proportional; /// + /// What is the maximum skill amount that can be added proportionally. + /// + public readonly float ProportionalMaxAmount; + /// /// Should the skill increase popup be always shown regardless of how much the skill increases? /// Normally it's only shown when the skill reaches the next integer value. /// @@ -396,6 +400,7 @@ public GiveSkill(ContentXElement element, string parentDebugName) TriggerTalents = element.GetAttributeBool(nameof(TriggerTalents), true); UseDeltaTime = element.GetAttributeBool(nameof(UseDeltaTime), false); Proportional = element.GetAttributeBool(nameof(Proportional), false); + ProportionalMaxAmount = element.GetAttributeFloat(nameof(ProportionalMaxAmount), 2); AlwayShowNotification = element.GetAttributeBool(nameof(AlwayShowNotification), false); if (SkillIdentifier == Identifier.Empty) @@ -1975,7 +1980,7 @@ protected void Apply(float deltaTime, Entity entity, IReadOnlyList