mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
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:
parent
0ebda38e93
commit
a486ae7a0d
5 changed files with 34 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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));
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@
|
|||
amount: -20
|
||||
- !type:PlantAdjustMutationMod
|
||||
amount: 0.1
|
||||
- !type:PlantRemoveKudzu
|
||||
metabolisms:
|
||||
Bloodstream:
|
||||
effects:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue