Files
tbd-station-14/Content.Shared/Atmos/EntitySystems/SharedDeltaPressureSystem.cs
ArtisticRoomba 91292522b5 DeltaPressure Predicted Examine (#41135)
* predicted examine

* atrociously satanic

* do it right this time

* deltafields aren't necessary

* Update Content.Server/Atmos/EntitySystems/AtmosphereSystem.DeltaPressure.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
2025-10-27 11:00:37 +00:00

21 lines
566 B
C#

using Content.Shared.Atmos.Components;
using Content.Shared.Examine;
namespace Content.Shared.Atmos.EntitySystems;
public abstract partial class SharedDeltaPressureSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<DeltaPressureComponent, ExaminedEvent>(OnExaminedEvent);
}
private void OnExaminedEvent(Entity<DeltaPressureComponent> ent, ref ExaminedEvent args)
{
if (ent.Comp.IsTakingDamage)
args.PushMarkup(Loc.GetString("window-taking-damage"));
}
}