Many improvements to vira.

Implemented an efficient system for infection. Made sneeze and cough increase infection chance. Increased the lifespan of spaceacillin in a host. Removed the drool symptom.
This commit is contained in:
cib
2011-12-30 21:07:52 -08:00
parent df4419da1e
commit f7be1250a3
4 changed files with 50 additions and 59 deletions
+1 -2
View File
@@ -1456,8 +1456,7 @@ datum
color = "#C8A5DC" // rgb: 200, 165, 220
on_mob_life(var/mob/living/M as mob)//no more mr. panacea
holder.remove_reagent(src.id, 0.2)
..()
holder.remove_reagent(src.id, 0.1)
return
carpotoxin
+1 -14
View File
@@ -998,14 +998,7 @@
D.cure()
if(!virus2)
// the following is silly since it lets you infect people through glass
/*for(var/mob/living/carbon/M in oviewers(4,src))
if(M.virus2)
infect_virus2(src,M.virus2)*/
// instead we're going to use little floating disease objects
for(var/obj/virus/V in src.loc) if(src.get_infection_chance())
infect_virus2(src,V.disease)
for(var/obj/effect/decal/cleanable/blood/B in view(4, src))
for(var/obj/effect/decal/cleanable/blood/B in src.loc)
if(B.virus2)
infect_virus2(src,B.virus2)
else
@@ -1016,12 +1009,6 @@
// check if we're immune
if(virus2.antigen & src.antibodies) virus2.dead = 1
if(src.get_infection_chance())
// need more pathogens
for(var/i=0, i<3, i++)
var/obj/virus/V = new(src.loc)
V.disease = src.virus2
return