--- /dev/null
+namespace Content.Server.Bed.Sleep;
+
+/// <summary>
+/// This is used for the snoring trait.
+/// </summary>
+[RegisterComponent]
+public sealed partial class SnoringComponent : Component
+{
+
+}
if (TryComp<SleepEmitSoundComponent>(uid, out var sleepSound))
{
var emitSound = EnsureComp<SpamEmitSoundComponent>(uid);
- emitSound.Sound = sleepSound.Snore;
+ if (HasComp<SnoringComponent>(uid))
+ {
+ emitSound.Sound = sleepSound.Snore;
+ }
emitSound.PlayChance = sleepSound.Chance;
emitSound.RollInterval = sleepSound.Interval;
emitSound.PopUp = sleepSound.PopUp;
trait-socialanxiety-name = Social Anxiety
trait-socialanxiety-desc = You are anxious when you speak and stutter.
+
+trait-snoring-name = Snoring
+trait-snoring-desc = You will snore while sleeping.
description: trait-frontal-lisp-desc
components:
- type: FrontalLisp
+
+- type: trait
+ id: Snoring
+ name: trait-snoring-name
+ description: trait-snoring-desc
+ components:
+ - type: Snoring