Adds the fun balloon base item and sound

This commit is contained in:
Jack Edge
2016-06-15 19:03:18 +01:00
parent 538a963a4e
commit b53b7dc0c1
2 changed files with 24 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
/obj/effect/fun_balloon
name = "fun balloon"
desc = "This is going to be a laugh riot."
anchoured = TRUE
/obj/effect/fun_balloon/New()
. = ..()
SSobj.processing |= src
/obj/effect/fun_balloon/Destroy()
SSobj.processing -= src
. = ..()
/obj/effect/fun_balloon/process()
if(check())
pop()
/obj/effect/fun_balloon/proc/check()
return TRUE
/obj/effect/fun_balloon/proc/pop()
visual_message("[src] pops!")
playsound(get_turf(src), 'sound/items/party_horn.ogg', 50, 1, -1)
qdel(src)