mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-11 01:51:51 +00:00
30 lines
1003 B
Plaintext
30 lines
1003 B
Plaintext
|
|
datum/event/viral_outbreak
|
|
severity = 1
|
|
|
|
datum/event/viral_outbreak/setup()
|
|
announceWhen = rand(0, 3000)
|
|
endWhen = announceWhen + 1
|
|
severity = rand(2, 4)
|
|
|
|
datum/event/viral_outbreak/announce()
|
|
command_announcement.Announce("Confirmed outbreak of level 7 viral biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", new_sound = 'sound/AI/outbreak7.ogg')
|
|
|
|
datum/event/viral_outbreak/start()
|
|
var/list/candidates = list() //list of candidate keys
|
|
for(var/mob/living/carbon/human/G in player_list)
|
|
if(G.client && G.stat != DEAD)
|
|
candidates += G
|
|
if(!candidates.len) return
|
|
candidates = shuffle(candidates)//Incorporating Donkie's list shuffle
|
|
|
|
var/datum/disease2/disease/D = new /datum/disease2/disease
|
|
D.makerandom()
|
|
message_admins("Viral Outbreak: releasing strain [D.uniqueID]")
|
|
|
|
while(severity > 0 && candidates.len)
|
|
var/mob/living/carbon/human/H = candidates[1]
|
|
H.virus2["[D.uniqueID]"] = D
|
|
candidates.Remove(candidates[1])
|
|
severity--
|