[MIRROR] Disease antagonist (#5815)
* Disease antagonist * Update mobs.dm * can I go to sleep yet
This commit is contained in:
committed by
Poojawa
parent
766b85908e
commit
a2e6253f00
+11
-8
@@ -63,6 +63,9 @@
|
||||
/datum/atom_hud/abductor
|
||||
hud_icons = list(GLAND_HUD)
|
||||
|
||||
/datum/atom_hud/sentient_disease
|
||||
hud_icons = list(SENTIENT_DISEASE_HUD)
|
||||
|
||||
/* MED/SEC/DIAG HUD HOOKS */
|
||||
|
||||
/*
|
||||
@@ -78,7 +81,7 @@
|
||||
//called when a carbon changes virus
|
||||
/mob/living/carbon/proc/check_virus()
|
||||
var/threat
|
||||
for(var/thing in viruses)
|
||||
for(var/thing in diseases)
|
||||
var/datum/disease/D = thing
|
||||
if(!(D.visibility_flags & HIDDEN_SCANNER))
|
||||
if(!threat || D.severity > threat) //a buffing virus gets an icon
|
||||
@@ -175,19 +178,19 @@
|
||||
holder.icon_state = "huddead"
|
||||
else
|
||||
switch(virus_threat)
|
||||
if(VIRUS_SEVERITY_BIOHAZARD)
|
||||
if(DISEASE_SEVERITY_BIOHAZARD)
|
||||
holder.icon_state = "hudill5"
|
||||
if(VIRUS_SEVERITY_DANGEROUS)
|
||||
if(DISEASE_SEVERITY_DANGEROUS)
|
||||
holder.icon_state = "hudill4"
|
||||
if(VIRUS_SEVERITY_HARMFUL)
|
||||
if(DISEASE_SEVERITY_HARMFUL)
|
||||
holder.icon_state = "hudill3"
|
||||
if(VIRUS_SEVERITY_MEDIUM)
|
||||
if(DISEASE_SEVERITY_MEDIUM)
|
||||
holder.icon_state = "hudill2"
|
||||
if(VIRUS_SEVERITY_MINOR)
|
||||
if(DISEASE_SEVERITY_MINOR)
|
||||
holder.icon_state = "hudill1"
|
||||
if(VIRUS_SEVERITY_NONTHREAT)
|
||||
if(DISEASE_SEVERITY_NONTHREAT)
|
||||
holder.icon_state = "hudill0"
|
||||
if(VIRUS_SEVERITY_POSITIVE)
|
||||
if(DISEASE_SEVERITY_POSITIVE)
|
||||
holder.icon_state = "hudbuff"
|
||||
if(null)
|
||||
holder.icon_state = "hudhealthy"
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
if(LAZYLEN(diseases))
|
||||
var/list/datum/disease/diseases_to_add = list()
|
||||
for(var/datum/disease/D in diseases)
|
||||
if(D.spread_flags & VIRUS_SPREAD_CONTACT_FLUIDS)
|
||||
if(D.spread_flags & DISEASE_SPREAD_CONTACT_FLUIDS)
|
||||
diseases_to_add += D
|
||||
if(LAZYLEN(diseases_to_add))
|
||||
AddComponent(/datum/component/infective, diseases_to_add)
|
||||
|
||||
@@ -262,7 +262,7 @@ GAS ANALYZER
|
||||
if(tdelta < (DEFIB_TIME_LIMIT * 10))
|
||||
to_chat(user, "<span class='danger'>Subject died [DisplayTimeText(tdelta)] ago, defibrillation may be possible!</span>")
|
||||
|
||||
for(var/thing in M.viruses)
|
||||
for(var/thing in M.diseases)
|
||||
var/datum/disease/D = thing
|
||||
if(!(D.visibility_flags & HIDDEN_SCANNER))
|
||||
to_chat(user, "<span class='alert'><b>Warning: [D.form] detected</b>\nName: [D.name].\nType: [D.spread_text].\nStage: [D.stage]/[D.max_stages].\nPossible Cure: [D.cure_text]</span>")
|
||||
|
||||
Reference in New Issue
Block a user