]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add solution temperature to chemical analysis goggles (#27693)
authorMr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
Sun, 5 May 2024 23:32:43 +0000 (19:32 -0400)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 23:32:43 +0000 (09:32 +1000)
yes

Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerSystem.cs
Resources/Locale/en-US/chemistry/components/solution-scanner-component.ftl

index e74c14638040c875390f55d8ac2912c2310dcc16..4b9100708557db0c2c8787ce4ba1d55122a22063 100644 (file)
@@ -733,7 +733,7 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
             return;
         }
 
-        if (!CanSeeHiddenSolution(entity,args.Examiner))
+        if (!CanSeeHiddenSolution(entity, args.Examiner))
             return;
 
         var primaryReagent = solution.GetPrimaryReagentId();
@@ -832,7 +832,7 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
             return;
         }
 
-        if (!CanSeeHiddenSolution(entity,args.User))
+        if (!CanSeeHiddenSolution(entity, args.User))
             return;
 
         var target = args.Target;
@@ -881,6 +881,9 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
                 , ("amount", quantity)));
         }
 
+        msg.PushNewline();
+        msg.AddMarkup(Loc.GetString("scannable-solution-temperature", ("temperature", Math.Round(solution.Temperature))));
+
         return msg;
     }
 
index 8dbbaf3edd77504f209c22fdcff4dd99c3be783f..51a049aab1716f9e5e1fa1a171adb189152effe2 100644 (file)
@@ -3,3 +3,4 @@ scannable-solution-verb-message = Examine the chemical composition.
 scannable-solution-main-text = It contains the following chemicals:
 scannable-solution-empty-container = It contains no chemicals.
 scannable-solution-chemical = - {$amount}u [color={$color}]{$type}[/color]
+scannable-solution-temperature = Solution temperature: {$temperature}K
\ No newline at end of file