mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Syndicate bomb delay wire changed to one time use (#16790)
* Syndicate bomb delay wire * Fixes delay wires * Add bomb delay variables * Forgot to remove unused var * Small fix
This commit is contained in:
@@ -24,9 +24,13 @@
|
||||
if(WIRE_UNBOLT)
|
||||
holder.visible_message("<span class='notice'>\icon[B] The bolts spin in place for a moment.</span>")
|
||||
if(WIRE_DELAY)
|
||||
holder.visible_message("<span class='notice'>\icon[B] The bomb chirps.</span>")
|
||||
playsound(B, 'sound/machines/chime.ogg', 30, 1)
|
||||
B.timer += 10
|
||||
if(B.delayedbig)
|
||||
holder.visible_message("<span class='notice'>\icon[B] The bomb has already been delayed.</span>")
|
||||
else
|
||||
holder.visible_message("<span class='notice'>\icon[B] The bomb chirps.</span>")
|
||||
playsound(B, 'sound/machines/chime.ogg', 30, 1)
|
||||
B.timer += 30
|
||||
B.delayedbig = TRUE
|
||||
if(WIRE_PROCEED)
|
||||
holder.visible_message("<span class='danger'>\icon[B] The bomb buzzes ominously!</span>")
|
||||
playsound(B, 'sound/machines/buzz-sigh.ogg', 30, 1)
|
||||
@@ -42,9 +46,12 @@
|
||||
playsound(B, 'sound/machines/click.ogg', 30, 1)
|
||||
B.active = TRUE
|
||||
B.update_icon()
|
||||
else if(B.delayedlittle)
|
||||
holder.visible_message("<span class='notice'>\icon[B] Nothing happens.</span>")
|
||||
else
|
||||
holder.visible_message("<span class='notice'>\icon[B] The bomb seems to hesitate for a moment.</span>")
|
||||
B.timer += 5
|
||||
B.timer += 10
|
||||
B.delayedlittle = TRUE
|
||||
|
||||
/datum/wires/syndicatebomb/on_cut(wire, mend)
|
||||
var/obj/machinery/syndicatebomb/B = holder
|
||||
@@ -72,4 +79,4 @@
|
||||
holder.visible_message("<span class='notice'>\icon[B] The timer stops! The bomb has been defused!</span>")
|
||||
B.active = FALSE
|
||||
B.defused = TRUE
|
||||
B.update_icon()
|
||||
B.update_icon()
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
var/defused = FALSE //is the bomb capable of exploding?
|
||||
var/obj/item/weapon/bombcore/payload = /obj/item/weapon/bombcore
|
||||
var/beepsound = 'sound/items/timer.ogg'
|
||||
var/delayedbig = FALSE //delay wire pulsed?
|
||||
var/delayedlittle = FALSE //activation wire pulsed?
|
||||
|
||||
/obj/machinery/syndicatebomb/process()
|
||||
if(active && !defused && (timer > 0)) //Tick Tock
|
||||
@@ -250,6 +252,8 @@
|
||||
holder.wires.shuffle_wires()
|
||||
holder.defused = 0
|
||||
holder.open_panel = 0
|
||||
holder.delayedbig = FALSE
|
||||
holder.delayedlittle = FALSE
|
||||
holder.update_icon()
|
||||
holder.updateDialog()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user