mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* 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>
22 lines
820 B
C#
22 lines
820 B
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Botany.Traits.Components;
|
|
|
|
/// <summary>
|
|
/// A plant trait that plays screams when the plant is harvested.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class PlantTraitScreamComponent : PlantTraitsComponent
|
|
{
|
|
/// <summary>
|
|
/// The sound to play when the plant screams.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public SoundSpecifier ScreamSound = new SoundCollectionSpecifier("PlantScreams", AudioParams.Default.AddVolume(-10));
|
|
|
|
/// <inheritdoc/>
|
|
public override LocId? TraitState { get; set; } = "mutation-plant-description-scream";
|
|
/// <inheritdoc/>
|
|
public override LocId? TraitName { get; set; } = "mutation-plant-noun-scream";
|
|
}
|