From: Tayrtahn Date: Tue, 11 Feb 2025 02:36:58 +0000 (-0500) Subject: Display radio frequencies with a decimal place (#35046) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4abadf9f99afe2e2bd0ba4eb281890252394700e;p=space-station-14.git Display radio frequencies with a decimal place (#35046) --- 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].