using Content.Shared.Examine; using Content.Shared.IdentityManagement; using Content.Shared.Nutrition.Components; using Content.Shared.Nutrition.Prototypes; using Robust.Shared.Prototypes; namespace Content.Shared.Nutrition.EntitySystems; /// /// Makes descriptions specified in show up in response to /// s. /// /// public sealed partial class ExaminableSatiationSystem : BaseSatiationEffectSystem { protected override Dictionary, SatiationThresholds> GetThresholds( ExaminableSatiationComponent comp ) => comp.Satiations; protected override LocId? DefaultValue() => null; [SubscribeLocalEvent] private void OnExamine(Entity entity, ref ExaminedEvent args) { var identity = Identity.Entity(entity, EntityManager); foreach (var (_, thresholds) in entity.Comp.Satiations) { if (thresholds.Current is not { } loc) continue; args.PushMarkup(Loc.GetString(loc, ("entity", identity))); } } }