]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Show TEG theoretical supply on inspect (#37957)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Fri, 30 May 2025 21:41:30 +0000 (14:41 -0700)
committerGitHub <noreply@github.com>
Fri, 30 May 2025 21:41:30 +0000 (16:41 -0500)
* Show TEG theoretical supply on inspect

* revert autoformatting changes

Content.Server/Power/Generation/Teg/TegSystem.cs
Resources/Locale/en-US/power/teg.ftl

index 0de3038a35b42dc8f3c7719e57a9bfbc97e07a70..ef578c81bf146d61e4ff12ec672c589e276c2b30 100644 (file)
@@ -101,7 +101,12 @@ public sealed class TegSystem : EntitySystem
         else
         {
             var supplier = Comp<PowerSupplierComponent>(uid);
-            args.PushMarkup(Loc.GetString("teg-generator-examine-power", ("power", supplier.CurrentSupply)));
+
+            using (args.PushGroup(nameof(TegGeneratorComponent)))
+            {
+                args.PushMarkup(Loc.GetString("teg-generator-examine-power", ("power", supplier.CurrentSupply)));
+                args.PushMarkup(Loc.GetString("teg-generator-examine-power-max-output", ("power", supplier.MaxSupply)));
+            }
         }
     }
 
index 6c3478197768365bb15a18bf8487617284d12f30..2ee3dac8e9dde5386dbbd924af1155598bb5c5e8 100644 (file)
@@ -1,2 +1,3 @@
-teg-generator-examine-power = It's generating [color=yellow]{ POWERWATTS($power) }[/color].
+teg-generator-examine-power = It's currently supplying [color=yellow]{ POWERWATTS($power) }[/color].
+teg-generator-examine-power-max-output = It's capable of supplying [color=yellow]{ POWERWATTS($power) }[/color].
 teg-generator-examine-connection = To function, a [color=white]circulator[/color] must be attached on both sides.