Skip to content

Commit

Permalink
Removes the 1s option from flashbangs (ParadiseSS13#26079)
Browse files Browse the repository at this point in the history
* flashbang 1s gone

* time defines

* Update code/game/objects/items/weapons/grenades/flashbang.dm

Co-authored-by: Contrabang <[email protected]>
Signed-off-by: 1080pCat <[email protected]>

* Update code/game/objects/items/weapons/grenades/flashbang.dm

Co-authored-by: Contrabang <[email protected]>
Signed-off-by: 1080pCat <[email protected]>

---------

Signed-off-by: 1080pCat <[email protected]>
Co-authored-by: Contrabang <[email protected]>
  • Loading branch information
1080pCat and Contrabang authored Jul 7, 2024
1 parent 4747bb1 commit 4a74724
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/game/objects/items/weapons/grenades/flashbang.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 4a74724

Please sign in to comment.