* 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>
21 lines
566 B
C#
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"));
|
|
}
|
|
}
|