mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-12 11:51:11 +03:00
23 lines
846 B
C#
23 lines
846 B
C#
using Content.Shared.Tools;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Botany.Traits.Components;
|
|
|
|
/// <summary>
|
|
/// A plant trait that causes a plant to become ligneous, preventing it from being harvested without special tools.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class PlantTraitLigneousComponent : PlantTraitsComponent
|
|
{
|
|
/// <summary>
|
|
/// Tool quality that required if plant should be harvested with specified tool.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<ToolQualityPrototype> HarvestToolQuality = "Sawing";
|
|
|
|
/// <inheritdoc/>
|
|
public override LocId? TraitState { get; set; } = "mutation-plant-description-ligneous";
|
|
/// <inheritdoc/>
|
|
public override LocId? TraitName { get; set; } = "mutation-plant-noun-ligneous";
|
|
}
|