Added winddown to space drugs effect (#25652)

added winddown to drug effect
This commit is contained in:
Flesh
2024-03-09 20:33:40 +01:00
committed by GitHub
parent e3180aec03
commit 865765d4ec
2 changed files with 14 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ public sealed class DrugOverlaySystem : EntitySystem
private void OnPlayerDetached(EntityUid uid, SeeingRainbowsComponent component, LocalPlayerDetachedEvent args)
{
_overlay.Intoxication = 0;
_overlay.TimeTicker = 0;
_overlayMan.RemoveOverlay(_overlay);
}
@@ -52,6 +53,7 @@ public sealed class DrugOverlaySystem : EntitySystem
if (_player.LocalEntity == uid)
{
_overlay.Intoxication = 0;
_overlay.TimeTicker = 0;
_overlayMan.RemoveOverlay(_overlay);
}
}