From 1e93dd1d1e769fb8f3264692243b2445b10f2655 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Wed, 10 Aug 2022 22:43:19 -0400 Subject: [PATCH] give more info in examine for rotting (#10493) * give more info in examine for rotting * remove line * Update MiasmaSystem.cs * Update MiasmaSystem.cs Co-authored-by: wrexbe <81056464+wrexbe@users.noreply.github.com> --- Content.Server/Atmos/Miasma/MiasmaSystem.cs | 10 ++++++++-- Resources/Locale/en-US/disease/miasma.ftl | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index dfbd021e85..783fe68cf7 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -188,8 +188,14 @@ namespace Content.Server.Atmos.Miasma private void OnExamined(EntityUid uid, PerishableComponent component, ExaminedEvent args) { - if (component.Rotting) - args.PushMarkup(Loc.GetString("miasma-rotting")); + if (!component.Rotting) + return; + var stage = component.DeathAccumulator / component.RotAfter.TotalSeconds; + var description = stage switch { + >= 3 => "miasma-extremely-bloated", + >= 2 => "miasma-bloated", + _ => "miasma-rotting"}; + args.PushMarkup(Loc.GetString(description)); } /// Containers diff --git a/Resources/Locale/en-US/disease/miasma.ftl b/Resources/Locale/en-US/disease/miasma.ftl index ae64119e3c..ecb162683e 100644 --- a/Resources/Locale/en-US/disease/miasma.ftl +++ b/Resources/Locale/en-US/disease/miasma.ftl @@ -1,2 +1,4 @@ miasma-smell = Something smells foul! miasma-rotting = [color=orange]It's rotting![/color] +miasma-bloated = [color=orangered]It's bloated![/color] +miasma-extremely-bloated = [color=red]It's extremely bloated![/color]