CatStation/Content.Shared/Botany/Traits/Components/PlantTraitUnviableComponent.cs
ahandleman c46f74c355
Various small botany bugfixes and reverts to prior behavior (#45842)
* Various small botany bugfixes and reverts to prior behavior

* oops rainbow cannabis needs it too

* oops, need to keep remove around for stuff like phal and plant-b-gone

* fix comment

* Fixed to make it selectable

* No need for plantPhalaxEntityEffect

* Ok moving removing this to its own PR because actually the guidebook stuff is weird and I wanna get this out the door.

* endless fixes to the botany

* renaming methods

* Refactored to remove PlantPhalanximineEntityEffectSystem because it's just a trait.

* removed the actual file

* renamed to noun/description for clarity

---------

Co-authored-by: Pok245 <113675512+Pok27@users.noreply.github.com>
2026-09-06 17:46:38 +00:00

22 lines
834 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Botany.Traits.Components;
/// <summary>
/// A plant trait that causes a plant to stop growing and die quickly.
/// It adds a bit of challenge to keeping mutated plants alive via Unviable's frequency.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class PlantTraitUnviableComponent : PlantTraitsComponent
{
/// <summary>
/// Amount of damage dealt to the plant per growth tick with unviable.
/// </summary>
[DataField, AutoNetworkedField]
public float UnviableDamage = 6f;
/// <inheritdoc/>
public override LocId? TraitState { get; set; } = "mutation-plant-description-unviable";
/// <inheritdoc/>
public override LocId? TraitName { get; set; } = "mutation-plant-noun-unviable";
}