]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Display radio frequencies with a decimal place (#35046)
authorTayrtahn <tayrtahn@gmail.com>
Tue, 11 Feb 2025 02:36:58 +0000 (21:36 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 02:36:58 +0000 (13:36 +1100)
Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs
Resources/Locale/en-US/radio/components/encryption-key-component.ftl

index 7b050273db611d0aa3bce3cf8f19b4ce796553e5..94d839a4208240d4b82c6e8d935c496fad6db7bf 100644 (file)
@@ -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))
index d595cd3790713b25415ea3d3e7278a304a836c1d..5bdf3faeb2aa02a970ee6f1a670b391358f0ace9 100644 (file)
@@ -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].