mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 17:43:35 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user