Skip to content

Commit

Permalink
Merge pull request tgstation#36349 from imsxz/cancer
Browse files Browse the repository at this point in the history
removes viral aggressive metabolism
  • Loading branch information
vuonojenmustaturska authored Mar 13, 2018
2 parents 8855194 + 31dab5b commit 711fa0c
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions code/datums/diseases/advance/symptoms/viral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,60 +46,3 @@ BONUS
stage_speed = 5
transmittable = 3
level = 3

/*
//////////////////////////////////////
Viral aggressive metabolism
Reduced stealth.
Small resistance boost.
Increased stage speed.
Small transmittablity boost.
Medium Level.
Bonus
The virus starts at stage 5, but after a certain time will start curing itself.
Stages still increase naturally with stage speed.
//////////////////////////////////////
*/

/datum/symptom/viralreverse

name = "Viral aggressive metabolism"
desc = "The virus sacrifices its long term survivability to nearly instantly fully spread inside a host. \
The virus will start at the last stage, but will eventually decay and die off by itself."
stealth = -2
resistance = 1
stage_speed = 3
transmittable = 1
level = 3
symptom_delay_min = 1
symptom_delay_max = 1
var/time_to_cure
threshold_desc = "<b>Resistance/Stage Speed:</b> Highest between these determines the amount of time before self-curing.<br>\
<b>Stealth 4:</b> Doubles the time before the virus self-cures."

/datum/symptom/viralreverse/Activate(datum/disease/advance/A)
if(!..())
return
if(time_to_cure > 0)
time_to_cure--
else
var/mob/living/M = A.affected_mob
Heal(M, A)

/datum/symptom/viralreverse/proc/Heal(mob/living/M, datum/disease/advance/A)
A.stage -= 1
if(A.stage < 2)
to_chat(M, "<span class='notice'>You suddenly feel healthy.</span>")
A.cure()

/datum/symptom/viralreverse/Start(datum/disease/advance/A)
if(!..())
return
A.stage = 5
if(A.properties["stealth"] >= 4) //more time before it's cured
power = 2
time_to_cure = max(A.properties["resistance"], A.properties["stage_rate"]) * 10 * power

0 comments on commit 711fa0c

Please sign in to comment.