From 4abadf9f99afe2e2bd0ba4eb281890252394700e Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Mon, 10 Feb 2025 21:36:58 -0500 Subject: [PATCH] Display radio frequencies with a decimal place (#35046) --- Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs | 2 +- .../Locale/en-US/radio/components/encryption-key-component.ftl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs b/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs index 7b050273db..94d839a420 100644 --- a/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs +++ b/Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs @@ -230,7 +230,7 @@ public sealed partial class EncryptionKeySystem : EntitySystem ("color", proto.Color), ("key", key), ("id", proto.LocalizedName), - ("freq", proto.Frequency))); + ("freq", proto.Frequency / 10f))); } if (defaultChannel != null && _protoManager.TryIndex(defaultChannel, out proto)) diff --git a/Resources/Locale/en-US/radio/components/encryption-key-component.ftl b/Resources/Locale/en-US/radio/components/encryption-key-component.ftl index d595cd3790..5bdf3faeb2 100644 --- a/Resources/Locale/en-US/radio/components/encryption-key-component.ftl +++ b/Resources/Locale/en-US/radio/components/encryption-key-component.ftl @@ -6,5 +6,5 @@ encryption-keys-are-locked = Encryption key slots are locked! encryption-keys-panel-locked = Open maintenance panel first! examine-encryption-channels-prefix = Available frequencies: -examine-encryption-channel = [color={$color}]{$key} for {$id} ({$freq})[/color] +examine-encryption-channel = [color={$color}]{$key} for {$id} ({NATURALFIXED($freq, 1)})[/color] examine-encryption-default-channel = The default channel is [color={$color}]{$channel}[/color]. -- 2.51.2