mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* remove quantum kudzu removal but add that functionality to plant B gone * Fixed to not duplicate phal effect name
16 lines
631 B
C#
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;
|
|
}
|
|
}
|