mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 14:44:05 +01:00
887a5111df
* CONFETTI CANNON * proc and contra review * sprite names * nukie uplink and lewcc suggestions * chemical fixed * fixes party drums cost and chem explosion sound * Henri review * renames a datum because I copypasted shit * changes a name because I copy pasted * removes an extra space * things I forgot + bundles + recipe change * Oopsie + tones down the volume of confetti
17 lines
512 B
Plaintext
17 lines
512 B
Plaintext
/obj/item/grenade/confetti
|
|
name = "party grenade"
|
|
desc = "Party time!"
|
|
icon_state = "confetti"
|
|
|
|
/obj/item/grenade/confetti/prime()
|
|
confettisize(src, 20, 4) //20 confettis. Yes.
|
|
qdel(src)
|
|
|
|
/proc/confettisize(turf/simulated/T, volume, range)
|
|
var/spawner_type = /obj/effect/decal/cleanable/confetti
|
|
playsound(T, 'sound/effects/confetti_partywhistle.ogg', 70, 1)
|
|
for(var/i in 1 to volume)
|
|
var/atom/movable/x = new spawner_type(T)
|
|
for(var/j in 1 to rand(1, range))
|
|
step(x, pick(NORTH,SOUTH,EAST,WEST))
|