From a308d86bc60003fe525d4d8521935f98283e5f8a Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Mon, 12 Sep 2022 23:32:07 -0400 Subject: [PATCH] Fix handheld radios incoming messages (#11237) --- Content.Server/Radio/Components/HandheldRadioComponent.cs | 5 ++++- Resources/Prototypes/Entities/Objects/Devices/radio.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Server/Radio/Components/HandheldRadioComponent.cs b/Content.Server/Radio/Components/HandheldRadioComponent.cs index 64a8ba4bcf..ee54e5f25c 100644 --- a/Content.Server/Radio/Components/HandheldRadioComponent.cs +++ b/Content.Server/Radio/Components/HandheldRadioComponent.cs @@ -25,7 +25,10 @@ namespace Content.Server.Radio.Components private bool _radioOn; [DataField("channels", customTypeSerializer: typeof(PrototypeIdHashSetSerializer))] - private HashSet _channels = new(); + private HashSet _channels = new() + { + "Common" + }; public int BroadcastFrequency => IoCManager.Resolve() .Index(BroadcastChannel).Frequency; diff --git a/Resources/Prototypes/Entities/Objects/Devices/radio.yml b/Resources/Prototypes/Entities/Objects/Devices/radio.yml index 223c109021..1c35be9f43 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/radio.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/radio.yml @@ -20,3 +20,4 @@ - type: Item sprite: Objects/Devices/communication.rsi heldPrefix: walkietalkie + - type: Speech \ No newline at end of file