]> git.smokeofanarchy.ru Git - space-station-14.git/blob
3163ee374c420f7a5983c6af7edac883601ce0d1
[space-station-14.git] /
1 using Content.Server.Botany.Components;
2 using Content.Shared.EntityEffects;
3 using Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
4
5 namespace Content.Server.EntityEffects.Effects.Botany.PlantAttributes;
6
7 public sealed partial class PlantAdjustMutationModEntityEffectSystem : EntityEffectSystem<PlantHolderComponent, PlantAdjustMutationMod>
8 {
9     protected override void Effect(Entity<PlantHolderComponent> entity, ref EntityEffectEvent<PlantAdjustMutationMod> args)
10     {
11         if (entity.Comp.Seed == null || entity.Comp.Dead)
12             return;
13
14         entity.Comp.MutationMod += args.Effect.Amount;
15     }
16 }