Files
Aurora.3/code/modules/events/blob.dm
PsiOmegaDelta 2c1debbcaa Logging tweaks.
Uploading a new library book now also gives an admin notice.
Admin logs will now add a (JMP) if at all applicable.
2016-01-08 15:22:43 +01:00

28 lines
683 B
Plaintext

/datum/event/blob
announceWhen = 12
var/obj/effect/blob/core/Blob
/datum/event/blob/announce()
level_seven_announcement()
/datum/event/blob/start()
var/turf/T = pick_area_turf(/area/maintenance, list(/proc/is_station_turf, /proc/not_turf_contains_dense_objects))
if(!T)
log_and_message_admins("Blob failed to find a viable turf.")
kill()
return
log_and_message_admins("Blob spawned at \the [get_area(T)]", location = T)
Blob = new /obj/effect/blob/core(T)
for(var/i = 1; i < rand(3, 4), i++)
Blob.process()
/datum/event/blob/tick()
if(!Blob || !Blob.loc)
Blob = null
kill()
return
if(IsMultiple(activeFor, 3))
Blob.process()