mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 01:02:06 +00:00
29 lines
779 B
Plaintext
29 lines
779 B
Plaintext
/datum/event/blob
|
|
announceWhen = 60
|
|
endWhen = 120
|
|
var/obj/structure/blob/core/Blob
|
|
|
|
/datum/event/blob/announce()
|
|
event_announcement.Announce("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak5.ogg')
|
|
|
|
/datum/event/blob/start()
|
|
var/turf/T = pick(blobstart)
|
|
if(!T)
|
|
return kill()
|
|
var/list/candidates = pollCandidates("Do you want to play as a blob?", ROLE_BLOB, 1)
|
|
var/mob/C
|
|
if(candidates.len)
|
|
C = pick(candidates)
|
|
Blob = new /obj/structure/blob/core(T, new_overmind=C.client)
|
|
for(var/i in 1 to 5)
|
|
Blob.process()
|
|
else
|
|
return kill()
|
|
|
|
/datum/event/blob/tick()
|
|
if(!Blob)
|
|
kill()
|
|
return
|
|
if(IsMultiple(activeFor, 3))
|
|
Blob.process()
|