Files
Paradise/code/modules/events/tear_honk.dm
T
AffectedArc07 210f8badf4 Makes all global variables handled by the GLOB controller (#13152)
* Handlers converted, now to fix 3532 compile errors

* 3532 compile fixes later, got runtimes on startup

* Well the server loads now atleast

* Take 2

* Oops
2020-03-20 21:56:37 -06:00

26 lines
808 B
Plaintext

/datum/event/tear/honk
var/obj/effect/tear/honk/HE //i could just inherit but its being finicky.
/datum/event/tear/honk/announce()
GLOB.event_announcement.Announce("A Honknomoly has opened. Expected location: [impact_area.name].", "Honknomoly Alert", 'sound/items/airhorn.ogg')
/datum/event/tear/honk/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
HE = new /obj/effect/tear/honk(T.loc)
/datum/event/tear/honk/end()
if(HE)
qdel(HE)
/obj/effect/tear/honk
name = "Honkmensional Tear"
desc = "A tear in the dimensional fabric of sanity."
/obj/effect/tear/honk/spew_critters()
for(var/i in 1 to 6)
var/mob/living/simple_animal/hostile/retaliate/clown/goblin/G = new(get_turf(src))
if(prob(50))
for(var/j = 1, j <= rand(1, 3), j++)
step(G, pick(NORTH, SOUTH, EAST, WEST))