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:
@@ -188,8 +188,14 @@ namespace Content.Server.Atmos.Miasma
|
|||||||
|
|
||||||
private void OnExamined(EntityUid uid, PerishableComponent component, ExaminedEvent args)
|
private void OnExamined(EntityUid uid, PerishableComponent component, ExaminedEvent args)
|
||||||
{
|
{
|
||||||
if (component.Rotting)
|
if (!component.Rotting)
|
||||||
args.PushMarkup(Loc.GetString("miasma-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
|
/// Containers
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
miasma-smell = Something smells foul!
|
miasma-smell = Something smells foul!
|
||||||
miasma-rotting = [color=orange]It's rotting![/color]
|
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]
|
||||||
|
|||||||
Reference in New Issue
Block a user