from dust we came to dust we shall return
This commit is contained in:
53
Content.Server/_White/_Engi/Suhariki/SuharikiComponent.cs
Normal file
53
Content.Server/_White/_Engi/Suhariki/SuharikiComponent.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using Robust.Shared.Prototypes;
|
||||
using Content.Shared.Damage;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Content.Shared.Chat.Prototypes;
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server._White._Engi.Suhariki;
|
||||
|
||||
/// <summary>
|
||||
/// Makes you loose your tooth and have funny accent.
|
||||
/// WD Engi Exclusive.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(SuharikiSystem))]
|
||||
public sealed partial class SuharikiComponent : Component
|
||||
|
||||
{
|
||||
/// <summary>
|
||||
/// Amount and type of damage that will be dealt on event.
|
||||
/// </summary>
|
||||
[DataField(required: true)]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public DamageSpecifier Damage = new();
|
||||
|
||||
/// <summary>
|
||||
/// Chance of event activation.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public float Chance = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Amount of rolls for event.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public int StonesInFood = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The prototype that will be spawned on event.
|
||||
/// </summary>
|
||||
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
||||
public string HoldingPrototype = "SuharikiTooth";
|
||||
|
||||
/// <summary>
|
||||
/// Emote triggered on event.
|
||||
/// </summary>
|
||||
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<EmotePrototype>))]
|
||||
public string EmoteId = "Scream";
|
||||
|
||||
/// <summary>
|
||||
/// Sound triggered on event.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public SoundSpecifier UseSound { get; set; } = new SoundPathSpecifier("/Audio/White/_Engi/Object/Misc/Suhariki/tooth_break.ogg");
|
||||
}
|
||||
Reference in New Issue
Block a user