Add solution temperature to chemical analysis goggles (#27693)

yes
This commit is contained in:
Mr. 27
2024-05-05 19:32:43 -04:00
committed by GitHub
parent b947490d08
commit 93c5e86857
2 changed files with 6 additions and 2 deletions

View File

@@ -733,7 +733,7 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
return; return;
} }
if (!CanSeeHiddenSolution(entity,args.Examiner)) if (!CanSeeHiddenSolution(entity, args.Examiner))
return; return;
var primaryReagent = solution.GetPrimaryReagentId(); var primaryReagent = solution.GetPrimaryReagentId();
@@ -832,7 +832,7 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
return; return;
} }
if (!CanSeeHiddenSolution(entity,args.User)) if (!CanSeeHiddenSolution(entity, args.User))
return; return;
var target = args.Target; var target = args.Target;
@@ -881,6 +881,9 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem
, ("amount", quantity))); , ("amount", quantity)));
} }
msg.PushNewline();
msg.AddMarkup(Loc.GetString("scannable-solution-temperature", ("temperature", Math.Round(solution.Temperature))));
return msg; return msg;
} }

View File

@@ -3,3 +3,4 @@ scannable-solution-verb-message = Examine the chemical composition.
scannable-solution-main-text = It contains the following chemicals: scannable-solution-main-text = It contains the following chemicals:
scannable-solution-empty-container = It contains no chemicals. scannable-solution-empty-container = It contains no chemicals.
scannable-solution-chemical = - {$amount}u [color={$color}]{$type}[/color] scannable-solution-chemical = - {$amount}u [color={$color}]{$type}[/color]
scannable-solution-temperature = Solution temperature: {$temperature}K