from dust we came to dust we shall return

This commit is contained in:
BIGZi0348
2024-11-24 22:12:50 +03:00
parent 4af9112264
commit 7340f36489
14 changed files with 340 additions and 0 deletions

View 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");
}