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
This commit is contained in:
ahandleman 2026-04-10 15:08:05 -05:00 • committed by GitHub
parent 0ebda38e93
commit a486ae7a0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 0 deletions

View file

@ -429,6 +429,7 @@ public sealed class PlantHolderSystem : EntitySystem
&& component.WeedLevel >= component.Seed.WeedHighLevelThreshold)
{
Spawn(component.Seed.KudzuPrototype, Transform(uid).Coordinates.SnapToGrid(EntityManager));
EnsureUniqueSeed(uid, component);
component.Seed.TurnIntoKudzu = false;
component.Health = 0;
}

View file

@ -0,0 +1,16 @@
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;
}
}

View file

@ -0,0 +1,10 @@
using Robust.Shared.Prototypes;
namespace Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
public sealed partial class PlantRemoveKudzu : EntityEffectBase<PlantRemoveKudzu>
{
/// <inheritdoc/>
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
Loc.GetString("entity-effect-guidebook-plant-remove-kudzu", ("chance", Probability));
}

View file

@ -495,6 +495,12 @@ entity-effect-guidebook-plant-phalanximine =
*[other] restore
} viability to a plant rendered nonviable by a mutation
entity-effect-guidebook-plant-remove-kudzu =
{ $chance ->
[1] Removes
*[other] remove
} kudzu weed growth from a plant
entity-effect-guidebook-plant-diethylamine =
{ $chance ->
[1] Increases

View file

@ -89,6 +89,7 @@
amount: -20
- !type:PlantAdjustMutationMod
amount: 0.1
- !type:PlantRemoveKudzu
metabolisms:
Bloodstream:
effects: