1 using Content.Server.Botany.Components;
2 using Content.Server.Botany.Systems;
3 using Content.Shared.EntityEffects;
4 using Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
6 namespace Content.Server.EntityEffects.Effects.Botany.PlantAttributes;
8 public sealed partial class PlantAdjustMutationLevelEntityEffectSystem : EntityEffectSystem<PlantHolderComponent, PlantAdjustMutationLevel>
10 [Dependency] private readonly PlantHolderSystem _plantHolder = default!;
12 protected override void Effect(Entity<PlantHolderComponent> entity, ref EntityEffectEvent<PlantAdjustMutationLevel> args)
14 if (entity.Comp.Seed == null || entity.Comp.Dead)
17 entity.Comp.Health += args.Effect.Amount;
18 _plantHolder.CheckHealth(entity, entity.Comp);