mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-06-08 07:38:19 +01:00
f11c1d45ec
this is the funny haha title everyone uses right this should hopefully fix the issue where one event failing to spawn causes 15 more to spawn in its place fixes #10427
30 lines
696 B
Plaintext
30 lines
696 B
Plaintext
/datum/event/blob
|
|
announceWhen = 12
|
|
|
|
var/obj/effect/blob/core/Blob
|
|
ic_name = "a biohazard"
|
|
|
|
/datum/event/blob/announce()
|
|
level_seven_announcement()
|
|
|
|
/datum/event/blob/start()
|
|
var/turf/T = pick_subarea_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(TRUE)
|
|
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
|
|
end()
|
|
kill()
|
|
return
|
|
if(IsMultiple(activeFor, 3))
|
|
Blob.process()
|