Changes to vira and health scanner.

- Antibodies now immunize you once they fight off a disease.
- The pathogenic isolator now displays whether blood is infected.
- Antibodies now work on monkeys.
- Syringes now extract reagents other than blood from humans, too.
- Separated the health scanning proc from the health scanner, so that it can later be re-used in the PDA.
- Health-scanners now display hints of whether someone may be infected.
This commit is contained in:
cib
2012-02-19 14:42:43 +01:00
committed by Albert Iordache
parent bbd86fa38c
commit 7fd3c5a4c4
4 changed files with 59 additions and 44 deletions
+3 -1
View File
@@ -7,10 +7,12 @@ datum/reagent/antibodies
color = "#0050F0"
reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
if(istype(M,/mob/living/carbon/human))
if(istype(M,/mob/living/carbon))
if(src.data && method == INGEST)
if(M:virus2) if(src.data["antibodies"] & M:virus2.antigen)
M:virus2.dead = 1
// if the virus is killed this way it immunizes
M:antibodies |= M:virus2.antigen
return
// reserving some numbers for later special antigens
+4 -1
View File
@@ -93,7 +93,10 @@
else
dat += "Contained reagents:<BR>"
for(var/datum/reagent/blood/G in R.reagent_list)
dat += " [G.name]: <A href='?src=\ref[src];isolate=[G.id]'>Isolate</a>"
if(G.data["virus2"])
dat += " [G.name]: <A href='?src=\ref[src];isolate=[G.id]'>Isolate</a>"
else
dat += " <b>No pathogen</b>"
user << browse("<TITLE>Pathogenic Isolator</TITLE>Isolator menu:<BR><BR>[dat]", "window=isolator;size=575x400")
onclose(user, "isolator")
return