mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Spaceacilline stronk.
Now it prevents new infections completely, and has a chance to cure virus on early stages (without giving antibodies though.)
This commit is contained in:
@@ -58,8 +58,10 @@
|
||||
if(prob(1))
|
||||
majormutate()
|
||||
|
||||
//Space antibiotics stop disease completely (temporary)
|
||||
//Space antibiotics stop disease completely
|
||||
if(mob.reagents.has_reagent("spaceacillin"))
|
||||
if(stage == 1 && prob(20))
|
||||
src.cure()
|
||||
return
|
||||
|
||||
//Virus food speeds up disease progress
|
||||
|
||||
@@ -60,6 +60,8 @@ proc/airborne_can_reach(turf/source, turf/target, var/radius=5)
|
||||
// if one of the antibodies in the mob's body matches one of the disease's antigens, don't infect
|
||||
if(M.antibodies & disease.antigen != 0)
|
||||
return
|
||||
if(M.reagents.has_reagent("spaceacillin"))
|
||||
return
|
||||
if(istype(M,/mob/living/carbon/monkey))
|
||||
var/mob/living/carbon/monkey/chimp = M
|
||||
if (!(chimp.greaterform in disease.affected_species))
|
||||
@@ -97,10 +99,6 @@ proc/airborne_can_reach(turf/source, turf/target, var/radius=5)
|
||||
D.makerandom(1)
|
||||
infect_virus2(M,D,1)
|
||||
|
||||
//Fancy prob() function.
|
||||
/proc/dprob(var/p)
|
||||
return(prob(sqrt(p)) && prob(sqrt(p)))
|
||||
|
||||
/mob/living/carbon/proc/spread_disease_to(var/mob/living/carbon/victim, var/vector = "Airborne")
|
||||
if (src == victim)
|
||||
return "retardation"
|
||||
|
||||
Reference in New Issue
Block a user