using Content.Shared.Botany.Components; using Content.Shared.Botany.Systems; namespace Content.Shared.EntityEffects.Effects.Botany.PlantAttributes; /// /// Entity effect that adjusts the minimum pressure tolerance of a plant. /// /// public sealed partial class PlantAdjustLowPressureToleranceEntityEffectSystem : EntityEffectSystem { [Dependency] private SharedPlantAtmosphericSystem _plantAtmospheric = default!; [Dependency] private PlantHolderSystem _plantHolder = default!; protected override void Effect(Entity entity, ref EntityEffectEvent args) { if (_plantHolder.IsDead(entity.Owner)) return; _plantAtmospheric.AdjustLowPressureTolerance(entity.AsNullable(), args.Effect.Amount); } } /// public sealed partial class PlantAdjustLowPressureTolerance : BasePlantAdjustAttribute { public override string GuidebookAttributeName { get; set; } = "plant-attribute-low-pressure-tolerance"; public override bool GuidebookIsAttributePositive { get; protected set; } = false; }