mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
28 lines
611 B
Plaintext
28 lines
611 B
Plaintext
/datum/event/blob
|
|
announceWhen = 12
|
|
endWhen = 120
|
|
|
|
var/obj/effect/blob/core/Blob
|
|
|
|
|
|
/datum/event/blob/announce()
|
|
command_alert("Confirmed outbreak of level 7 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
|
|
world << sound('sound/AI/outbreak7.ogg')
|
|
|
|
|
|
/datum/event/blob/start()
|
|
var/turf/T = pick(blobstart)
|
|
if(!T)
|
|
kill()
|
|
return
|
|
Blob = new /obj/effect/blob/core(T, 200)
|
|
for(var/i = 1; i < rand(3, 6), i++)
|
|
Blob.process()
|
|
|
|
|
|
/datum/event/blob/tick()
|
|
if(!Blob)
|
|
kill()
|
|
return
|
|
if(IsMultiple(activeFor, 3))
|
|
Blob.process() |