Skip to content

Commit

Permalink
effects that apply to plant should apply when planted
Browse files Browse the repository at this point in the history
  • Loading branch information
PraxisMapper committed Sep 17, 2024
1 parent 540b1b1 commit c5cd81b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/Botany/Systems/PlantHolderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Timing;
using Content.Shared.EntityEffects;

namespace Content.Server.Botany.Systems;

Expand Down Expand Up @@ -177,6 +178,11 @@ private void OnInteractUsing(Entity<PlantHolderComponent> entity, ref InteractUs
}
component.LastCycle = _gameTiming.CurTime;

var effectArgs = new EntityEffectBaseArgs(uid, EntityManager);
foreach (var mut in component.Seed.Mutations)
if (mut.AppliesToPlant)
mut.Effect.Effect(effectArgs);

QueueDel(args.Used);

CheckLevelSanity(uid, component);
Expand Down

0 comments on commit c5cd81b

Please sign in to comment.