mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Adds new nuke toy, plays nuke sound when attack_self'd
Cooldown of 5 minutes
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
/obj/item/toy/prize/mauler = 1,
|
||||
/obj/item/toy/prize/odysseus = 1,
|
||||
/obj/item/toy/prize/phazon = 1,
|
||||
/obj/item/toy/cards = 2
|
||||
/obj/item/toy/cards = 2,
|
||||
/obj/item/toy/nuke = 2
|
||||
)
|
||||
|
||||
/obj/machinery/computer/arcade/New()
|
||||
@@ -546,4 +547,4 @@
|
||||
|
||||
/obj/machinery/computer/arcade/orion_trail/proc/win()
|
||||
playing = 0
|
||||
prizevend()
|
||||
prizevend()
|
||||
|
||||
@@ -851,7 +851,23 @@ obj/item/toy/singlecard/attack_self(mob/user)
|
||||
Flip()
|
||||
|
||||
|
||||
|
||||
/obj/item/toy/nuke
|
||||
name = "\improper Nuclear Fission Explosive toy"
|
||||
desc = "A plastic model of a Nuclear Fission Explosive."
|
||||
icon = 'icons/obj/toy.dmi'
|
||||
icon_state = "nuketoyidle"
|
||||
w_class = 2.0
|
||||
var/cooldown = 0
|
||||
|
||||
/obj/item/toy/nuke/attack_self(mob/user)
|
||||
if (cooldown < world.time)
|
||||
cooldown = world.time + 3000 //5 minutes
|
||||
icon_state = "nuketoy"
|
||||
for (var/mob/M in hearers(world.view, user)) //I'm doing this because playsound's dampening/stereo ruins the effect
|
||||
if (M.client && !M.ear_deaf)
|
||||
M << 'sound/machines/Alarm.ogg'
|
||||
sleep(135)
|
||||
icon_state = "nuketoyidle"
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.7 KiB |
Reference in New Issue
Block a user