Skip to content

Commit

Permalink
Adds a delay to the nuke ops bomb button (tgstation#24493)
Browse files Browse the repository at this point in the history
* Do not look away from the button

* wups
  • Loading branch information
Supermichael777 authored and optimumtact committed Feb 28, 2017
1 parent 1bfb868 commit 775c842
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/game/machinery/syndicatebomb.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#define BUTTON_COOLDOWN 30
#define BUTTON_COOLDOWN 60 // cant delay the bomb forever
#define BUTTON_DELAY 50 //five seconds

/obj/machinery/syndicatebomb
icon = 'icons/obj/assemblies.dmi'
Expand Down Expand Up @@ -516,7 +517,7 @@

/obj/item/device/syndicatedetonator
name = "big red button"
desc = "Nothing good can come of pressing a button this garish..."
desc = "Your standard issue bomb synchronizing button. Five second safety delay to prevent 'accidents'"
icon = 'icons/obj/assemblies.dmi'
icon_state = "bigred"
item_state = "electronic"
Expand All @@ -530,7 +531,7 @@
if(timer < world.time)
for(var/obj/machinery/syndicatebomb/B in machines)
if(B.active)
B.explode_now = TRUE
B.detonation_timer = world.time + BUTTON_DELAY
detonated++
existant++
playsound(user, 'sound/machines/click.ogg', 20, 1)
Expand All @@ -550,3 +551,4 @@


#undef BUTTON_COOLDOWN
#undef BUTTON_DELAY

0 comments on commit 775c842

Please sign in to comment.