mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 05:02:33 +00:00
* Life Refactor WIP * part 2 * part 3 * runtime fix * newlines * tweaks * perspective checks * fixes * remote view tweaks * more fixes * robot fixes * better updating * cleaned up icon procs * less proc call overhead * performance gains * more optimization * shorter lists, removal of unecesary code * gene OOP and dna styling cleanup * oops * axe disabilities * typeless loop * various tweaks and fixes * brain checks * runtime fixes * cryo vision fixes
19 lines
588 B
Plaintext
19 lines
588 B
Plaintext
/datum/event/spontaneous_appendicitis/start()
|
|
for(var/mob/living/carbon/human/H in shuffle(GLOB.alive_mob_list))
|
|
if(issmall(H)) //don't infect monkies; that's a waste.
|
|
continue
|
|
if(!H.client)
|
|
continue
|
|
if(!H.get_int_organ(/obj/item/organ/internal/appendix))
|
|
continue
|
|
var/foundAlready = FALSE //don't infect someone that already has appendicitis
|
|
for(var/datum/disease/appendicitis/A in H.viruses)
|
|
foundAlready = TRUE
|
|
break
|
|
if(H.stat == DEAD || foundAlready)
|
|
continue
|
|
|
|
var/datum/disease/D = new /datum/disease/appendicitis
|
|
H.ForceContractDisease(D)
|
|
break
|