Improve rotting examine text (#24689)
This commit is contained in:
@@ -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))));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user