From 4a7472495ef0fed3e34b12b7983bb0730770f938 Mon Sep 17 00:00:00 2001 From: 1080pCat <96908085+1080pCat@users.noreply.github.com> Date: Sun, 7 Jul 2024 23:16:46 +1000 Subject: [PATCH] Removes the 1s option from flashbangs (#26079) * flashbang 1s gone * time defines * Update code/game/objects/items/weapons/grenades/flashbang.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> * Update code/game/objects/items/weapons/grenades/flashbang.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --------- Signed-off-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --- .../objects/items/weapons/grenades/flashbang.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index 5ed12d3b438..148d86db358 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -27,6 +27,20 @@ bang(T, src, range) qdel(src) +/obj/item/grenade/flashbang/screwdriver_act(mob/living/user, obj/item/I) + switch(det_time) + if(0.1 SECONDS) + det_time = 3 SECONDS + to_chat(user, "You set [src] for 3 second detonation time.") + if(3 SECONDS) + det_time = 5 SECONDS + to_chat(user, "You set [src] for 5 second detonation time.") + if(5 SECONDS) + det_time = 0.1 SECONDS + to_chat(user, "You set [src] for instant detonation.") + add_fingerprint(user) + return TRUE + /** * Creates a flashing effect that blinds and deafens mobs within range *