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>
This commit is contained in:
Rane
2022-08-10 22:43:19 -04:00
committed by GitHub
parent 8c8b19454a
commit 1e93dd1d1e
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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]