Improve rotting examine text (#24689)

This commit is contained in:
Kara
2024-01-29 00:50:17 -07:00
committed by GitHub
parent ef6ca154e7
commit 1a74311c9f
3 changed files with 27 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
using Content.Shared.Examine;
using Content.Shared.IdentityManagement;
using Content.Shared.Mobs.Components;
namespace Content.Shared.Atmos.Rotting;
@@ -34,6 +35,10 @@ public abstract class SharedRottingSystem : EntitySystem
>= 1 => "rotting-bloated",
_ => "rotting-rotting"
};
if (!HasComp<MobStateComponent>(uid))
description += "-nonmob";
args.PushMarkup(Loc.GetString(description, ("target", Identity.Entity(uid, EntityManager))));
}
}