diff --git a/Content.Server/Morgue/MorgueSystem.cs b/Content.Server/Morgue/MorgueSystem.cs index b05c4414bc..a07accf777 100644 --- a/Content.Server/Morgue/MorgueSystem.cs +++ b/Content.Server/Morgue/MorgueSystem.cs @@ -3,8 +3,6 @@ using Content.Shared.Body.Components; using Content.Shared.Examine; using Content.Shared.Morgue; using Content.Shared.Morgue.Components; -using Robust.Server.GameObjects; -using Robust.Shared.Audio; using Robust.Shared.Audio.Systems; using Robust.Shared.Player; @@ -25,12 +23,12 @@ public sealed class MorgueSystem : EntitySystem /// /// Handles the examination text for looking at a morgue. /// - private void OnExamine(EntityUid uid, MorgueComponent component, ExaminedEvent args) + private void OnExamine(Entity ent, ref ExaminedEvent args) { if (!args.IsInDetailsRange) return; - _appearance.TryGetData(uid, MorgueVisuals.Contents, out var contents); + _appearance.TryGetData(ent.Owner, MorgueVisuals.Contents, out var contents); var text = contents switch { diff --git a/Content.Shared/Morgue/Components/MorgueComponent.cs b/Content.Shared/Morgue/Components/MorgueComponent.cs index d4761d1ce4..5d3fa45161 100644 --- a/Content.Shared/Morgue/Components/MorgueComponent.cs +++ b/Content.Shared/Morgue/Components/MorgueComponent.cs @@ -9,19 +9,18 @@ public sealed partial class MorgueComponent : Component /// /// Whether or not the morgue beeps if a living player is inside. /// - [ViewVariables(VVAccess.ReadWrite)] - [DataField("doSoulBeep")] + [DataField] public bool DoSoulBeep = true; - [ViewVariables] + [DataField] public float AccumulatedFrameTime = 0f; /// /// The amount of time between each beep. /// - [ViewVariables] + [DataField] public float BeepTime = 10f; - [DataField("occupantHasSoulAlarmSound")] + [DataField] public SoundSpecifier OccupantHasSoulAlarmSound = new SoundPathSpecifier("/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg"); }