mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Changes cure mechanism
This commit is contained in:
@@ -81,13 +81,18 @@
|
|||||||
mob.reagents.remove_reagent("virusfood",0.1)
|
mob.reagents.remove_reagent("virusfood",0.1)
|
||||||
clicks += 10
|
clicks += 10
|
||||||
|
|
||||||
|
if(prob(1) && prob(stage)) // Increasing chance of curing as the virus progresses
|
||||||
|
src.cure(mob)
|
||||||
|
mob.antibodies |= src.antigen
|
||||||
|
|
||||||
//Moving to the next stage
|
//Moving to the next stage
|
||||||
if(clicks > max(stage*100, 200) && prob(10))
|
if(clicks > max(stage*100, 200) && prob(10))
|
||||||
if(stage == max_stage)
|
if((stage <= max_stage) && prob(20)) // ~60% of viruses will be cured by the end of S4 with this
|
||||||
src.cure(mob)
|
src.cure(mob)
|
||||||
mob.antibodies |= src.antigen
|
mob.antibodies |= src.antigen
|
||||||
stage++
|
stage++
|
||||||
clicks = 0
|
clicks = 0
|
||||||
|
|
||||||
//Do nasty effects
|
//Do nasty effects
|
||||||
for(var/datum/disease2/effectholder/e in effects)
|
for(var/datum/disease2/effectholder/e in effects)
|
||||||
if(prob(33))
|
if(prob(33))
|
||||||
@@ -100,7 +105,7 @@
|
|||||||
infect_virus2(M,src)
|
infect_virus2(M,src)
|
||||||
|
|
||||||
//fever
|
//fever
|
||||||
mob.bodytemperature = max(mob.bodytemperature, min(310+5*stage ,mob.bodytemperature+5*stage))
|
mob.bodytemperature = max(mob.bodytemperature, min(310+5*min(stage,max_stage) ,mob.bodytemperature+5*min(stage,max_stage)))
|
||||||
clicks+=speed
|
clicks+=speed
|
||||||
|
|
||||||
/datum/disease2/disease/proc/cure(var/mob/living/carbon/mob)
|
/datum/disease2/disease/proc/cure(var/mob/living/carbon/mob)
|
||||||
|
|||||||
Reference in New Issue
Block a user