Add ambient music (#16829)
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
using Robust.Shared.Audio;
|
||||
|
||||
namespace Content.Server.Morgue.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class MorgueComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether or not the morgue beeps if a living player is inside.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("doSoulBeep")]
|
||||
public bool DoSoulBeep = true;
|
||||
|
||||
[ViewVariables]
|
||||
public float AccumulatedFrameTime = 0f;
|
||||
|
||||
/// <summary>
|
||||
/// The amount of time between each beep.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public float BeepTime = 10f;
|
||||
|
||||
[DataField("occupantHasSoulAlarmSound")]
|
||||
public SoundSpecifier OccupantHasSoulAlarmSound = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg");
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using Content.Server.Storage.Components;
|
||||
using Content.Shared.Body.Components;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Morgue;
|
||||
using Content.Shared.Morgue.Components;
|
||||
using Robust.Server.GameObjects;
|
||||
|
||||
namespace Content.Server.Morgue;
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Server.Prayer
|
||||
{
|
||||
/// <summary>
|
||||
/// Allows an entity to be prayed on in the context menu
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class PrayableComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// If bible users are only allowed to use this prayable entity
|
||||
/// </summary>
|
||||
[DataField("bibleUserOnly")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool BibleUserOnly;
|
||||
|
||||
/// <summary>
|
||||
/// Message given to user to notify them a message was sent
|
||||
/// </summary>
|
||||
[DataField("sentMessage")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string SentMessage = "prayer-popup-notify-pray-sent";
|
||||
|
||||
/// <summary>
|
||||
/// Prefix used in the notification to admins
|
||||
/// </summary>
|
||||
[DataField("notifiactionPrefix")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string NotifiactionPrefix = "prayer-chat-notify-pray";
|
||||
|
||||
/// <summary>
|
||||
/// Used in window title and context menu
|
||||
/// </summary>
|
||||
[DataField("verb")]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public string Verb = "prayer-verbs-pray";
|
||||
|
||||
/// <summary>
|
||||
/// Context menu image
|
||||
/// </summary>
|
||||
[DataField("verbImage")]
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public SpriteSpecifier? VerbImage = new SpriteSpecifier.Texture(new ("/Textures/Interface/pray.svg.png"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ using Content.Shared.Popups;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Player;
|
||||
using Content.Shared.Chat;
|
||||
using Content.Shared.Prayer;
|
||||
using Content.Shared.Verbs;
|
||||
using Robust.Server.GameObjects;
|
||||
|
||||
@@ -100,10 +101,9 @@ public sealed class PrayerSystem : EntitySystem
|
||||
if (sender.AttachedEntity == null)
|
||||
return;
|
||||
|
||||
|
||||
_popupSystem.PopupEntity(Loc.GetString(comp.SentMessage), sender.AttachedEntity.Value, sender, PopupType.Medium);
|
||||
|
||||
_chatManager.SendAdminAnnouncement($"{Loc.GetString(comp.NotifiactionPrefix)} <{sender.Name}>: {message}");
|
||||
_adminLogger.Add(LogType.AdminMessage, LogImpact.Low, $"{ToPrettyString(sender.AttachedEntity.Value):player} sent prayer ({Loc.GetString(comp.NotifiactionPrefix)}): {message}");
|
||||
_chatManager.SendAdminAnnouncement($"{Loc.GetString(comp.NotificationPrefix)} <{sender.Name}>: {message}");
|
||||
_adminLogger.Add(LogType.AdminMessage, LogImpact.Low, $"{ToPrettyString(sender.AttachedEntity.Value):player} sent prayer ({Loc.GetString(comp.NotificationPrefix)}): {message}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user