Snore is a trait now (#26322)
This commit is contained in:
10
Content.Server/Bed/Components/SnoringComponent.cs
Normal file
10
Content.Server/Bed/Components/SnoringComponent.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Content.Server.Bed.Sleep;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for the snoring trait.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class SnoringComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
@@ -67,7 +67,10 @@ namespace Content.Server.Bed.Sleep
|
||||
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;
|
||||
|
||||
@@ -32,3 +32,6 @@ trait-frontal-lisp-desc = You thpeak with a lithp
|
||||
|
||||
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.
|
||||
|
||||
@@ -60,3 +60,10 @@
|
||||
description: trait-frontal-lisp-desc
|
||||
components:
|
||||
- type: FrontalLisp
|
||||
|
||||
- type: trait
|
||||
id: Snoring
|
||||
name: trait-snoring-name
|
||||
description: trait-snoring-desc
|
||||
components:
|
||||
- type: Snoring
|
||||
|
||||
Reference in New Issue
Block a user