Hardbombs & Defusables (#15380)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com>
Co-authored-by: LankLTE <twlowe06@gmail.com>
Co-authored-by: LankLTE <135308300+LankLTE@users.noreply.github.com>
This commit is contained in:
eclips_e
2023-09-12 09:42:38 +08:00
committed by GitHub
parent 75bf7bc6e8
commit 133ca98655
31 changed files with 1124 additions and 0 deletions

View File

@@ -221,6 +221,14 @@ namespace Content.Server.Explosion.EntitySystems
return triggerEvent.Handled;
}
public void TryDelay(EntityUid uid, float amount, ActiveTimerTriggerComponent? comp = null)
{
if (!Resolve(uid, ref comp, false))
return;
comp.TimeRemaining += amount;
}
public void HandleTimerTrigger(EntityUid uid, EntityUid? user, float delay , float beepInterval, float? initialBeepDelay, SoundSpecifier? beepSound)
{
if (delay <= 0)