mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-06-06 14:53:19 +01:00
7bb5b51954
Conflicts: code/modules/events/event_manager.dm
14 lines
451 B
Plaintext
14 lines
451 B
Plaintext
/datum/event/spontaneous_appendicitis/start()
|
|
for(var/mob/living/carbon/human/H in shuffle(living_mob_list)) if(H.client && H.stat != DEAD)
|
|
var/foundAlready = 0 //don't infect someone that already has the virus
|
|
for(var/datum/disease/D in H.viruses)
|
|
foundAlready = 1
|
|
if(H.stat == 2 || foundAlready)
|
|
continue
|
|
|
|
var/datum/disease/D = new /datum/disease/appendicitis
|
|
D.holder = H
|
|
D.affected_mob = H
|
|
H.viruses += D
|
|
break
|