mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user