Made it possible for mob to be infected with several viruses at once.

This commit is contained in:
Chinsky
2013-06-09 13:31:16 +04:00
parent 5703b8089d
commit 7a8a822a92
16 changed files with 106 additions and 117 deletions
+8 -5
View File
@@ -929,11 +929,14 @@ datum
M.apply_effect(2*REM,IRRADIATE,0)
// radium may increase your chances to cure a disease
if(istype(M,/mob/living/carbon)) // make sure to only use it on carbon mobs
if(M:virus2 && prob(5))
if(prob(50))
M.radiation += 50 // curing it that way may kill you instead
M.adjustToxLoss(100)
M:antibodies |= M:virus2.antigen
var/mob/living/carbon/C = M
if(C.virus2)
for (var/datum/disease2/disease/V in C.virus2)
if(prob(5))
if(prob(50))
M.radiation += 50 // curing it that way may kill you instead
M.adjustToxLoss(100)
M:antibodies |= V.antigen
..()
return