CatStation/Content.Server/EntityEffects/Effects/Botany/PlantAttributes/PlantRemoveKudzuEntityEffectSystem.cs
ahandleman a486ae7a0d
Move Kudzu Removal from Shared Seed Shenanigans to Plant-B-Gone (#43385)
* remove quantum kudzu removal but add that functionality to plant B gone

* Fixed to not duplicate phal effect name
2026-04-10 20:08:05 +00:00

16 lines
631 B
C#

using Content.Server.Botany.Components;
using Content.Shared.EntityEffects;
using Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
namespace Content.Server.EntityEffects.Effects.Botany.PlantAttributes;
public sealed partial class PlantRemoveKudzuEntityEffectSystem : EntityEffectSystem<PlantHolderComponent, PlantRemoveKudzu>
{
protected override void Effect(Entity<PlantHolderComponent> entity, ref EntityEffectEvent<PlantRemoveKudzu> args)
{
if (entity.Comp.Seed == null || entity.Comp.Dead || entity.Comp.Seed.Immutable)
return;
entity.Comp.Seed.TurnIntoKudzu = false;
}
}