From c5cd81b57fd5f2d798ec39e2d8674698199f6d2c Mon Sep 17 00:00:00 2001 From: PraxisMapper Date: Tue, 17 Sep 2024 15:16:16 -0400 Subject: [PATCH] effects that apply to plant should apply when planted --- Content.Server/Botany/Systems/PlantHolderSystem.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Content.Server/Botany/Systems/PlantHolderSystem.cs b/Content.Server/Botany/Systems/PlantHolderSystem.cs index 0fdca029b79a75..62625ccfeea0a5 100644 --- a/Content.Server/Botany/Systems/PlantHolderSystem.cs +++ b/Content.Server/Botany/Systems/PlantHolderSystem.cs @@ -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; @@ -177,6 +178,11 @@ private void OnInteractUsing(Entity 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);