Literally Murder IExamine (#7352)
This commit is contained in:
@@ -2,16 +2,8 @@ using System.Collections.Generic;
|
||||
using Content.Server.Chat;
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Server.Radio.EntitySystems;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Interaction.Helpers;
|
||||
using Content.Shared.Popups;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.Utility;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Radio.Components
|
||||
{
|
||||
@@ -21,7 +13,7 @@ namespace Content.Server.Radio.Components
|
||||
[ComponentReference(typeof(IListen))]
|
||||
[ComponentReference(typeof(IActivate))]
|
||||
#pragma warning disable 618
|
||||
public sealed class HandheldRadioComponent : Component, IListen, IRadio, IActivate, IExamine
|
||||
public sealed class HandheldRadioComponent : Component, IListen, IRadio, IActivate
|
||||
#pragma warning restore 618
|
||||
{
|
||||
private ChatSystem _chatSystem = default!;
|
||||
@@ -33,7 +25,7 @@ namespace Content.Server.Radio.Components
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("broadcastChannel")]
|
||||
private int BroadcastFrequency { get; set; } = 1459;
|
||||
public int BroadcastFrequency { get; set; } = 1459;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("listenRange")] public int ListenRange { get; private set; } = 7;
|
||||
|
||||
@@ -104,10 +96,5 @@ namespace Content.Server.Radio.Components
|
||||
{
|
||||
Use(eventArgs.User);
|
||||
}
|
||||
|
||||
public void Examine(FormattedMessage message, bool inDetailsRange)
|
||||
{
|
||||
message.AddText(Loc.GetString("handheld-radio-component-on-examine",("frequency", BroadcastFrequency)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user