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>
This commit is contained in:
1080pCat
2024-07-07 13:16:46 +00:00
committed by GitHub
co-authored by Contrabang
parent 4747bb137c
commit 4a7472495e
@@ -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, "<span class='notice'>You set [src] for 3 second detonation time.</span>")
if(3 SECONDS)
det_time = 5 SECONDS
to_chat(user, "<span class='notice'>You set [src] for 5 second detonation time.</span>")
if(5 SECONDS)
det_time = 0.1 SECONDS
to_chat(user, "<span class='notice'>You set [src] for instant detonation.</span>")
add_fingerprint(user)
return TRUE
/**
* Creates a flashing effect that blinds and deafens mobs within range
*