ну я и че (#346)

* CheZaHuetaSystem

* CheZaHuetaSystem2

* в
This commit is contained in:
rhailrake
2023-08-29 05:59:14 +06:00
committed by Aviu00
parent 6d20951c5d
commit 00956b0fdb
18 changed files with 301 additions and 29 deletions

View File

@@ -99,7 +99,11 @@ namespace Content.Server.Body.Systems
if (_gameTiming.CurTime >= respirator.LastGaspPopupTime + respirator.GaspPopupCooldown)
{
respirator.LastGaspPopupTime = _gameTiming.CurTime;
_popupSystem.PopupEntity(Loc.GetString("lung-behavior-gasp"), uid);
if (TryComp<MetaDataComponent>(uid, out var metaDataComponent))
{
_popupSystem.PopupEntity($"{metaDataComponent.EntityName} задыхается!", uid);
}
}
TakeSuffocationDamage(uid, respirator);