From f239efcd4526d79c643d2f9e73b8b5f31b9a5e3f Mon Sep 17 00:00:00 2001 From: LetterJay Date: Sun, 8 Oct 2017 22:37:34 -0500 Subject: [PATCH] Update oxygen.dm --- .../diseases/advance/symptoms/oxygen.dm | 66 +++++++++---------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/code/datums/diseases/advance/symptoms/oxygen.dm b/code/datums/diseases/advance/symptoms/oxygen.dm index 850f7649ce..7bb6934707 100644 --- a/code/datums/diseases/advance/symptoms/oxygen.dm +++ b/code/datums/diseases/advance/symptoms/oxygen.dm @@ -1,42 +1,38 @@ -/* -////////////////////////////////////// - -Self-Respiration - - Slightly hidden. - Lowers resistance significantly. - Decreases stage speed significantly. - Decreases transmittablity tremendously. - Fatal Level. - -Bonus - The body generates salbutamol. - -////////////////////////////////////// -*/ - -/datum/symptom/oxygen - - name = "Self-Respiration" +/* +////////////////////////////////////// + +Self-Respiration + + Slightly hidden. + Lowers resistance significantly. + Decreases stage speed significantly. + Decreases transmittablity tremendously. + Fatal Level. + +Bonus + The body generates salbutamol. + +////////////////////////////////////// +*/ + +/datum/symptom/oxygen + + name = "Self-Respiration" desc = "The virus rapidly synthesizes oxygen, effectively removing the need for breathing." - stealth = 1 - resistance = -3 - stage_speed = -3 - transmittable = -4 - level = 6 + stealth = 1 + resistance = -3 + stage_speed = -3 + transmittable = -4 + level = 6 base_message_chance = 5 symptom_delay_min = 1 symptom_delay_max = 1 var/regenerate_blood = FALSE threshold_desc = "Resistance 8:Additionally regenerates lost blood.
" - + /datum/symptom/oxygen/Start(datum/disease/advance/A) -<<<<<<< HEAD - ..() -======= if(!..()) return ->>>>>>> 1940af0... Fixes Start() of symptoms still working when neutered (#31435) if(A.properties["resistance"] >= 8) //blood regeneration regenerate_blood = TRUE @@ -44,13 +40,13 @@ Bonus if(!..()) return var/mob/living/carbon/M = A.affected_mob - switch(A.stage) - if(4, 5) + switch(A.stage) + if(4, 5) M.adjustOxyLoss(-7, 0) M.losebreath = max(0, M.losebreath - 4) if(regenerate_blood && M.blood_volume < BLOOD_VOLUME_NORMAL) M.blood_volume += 1 - else + else if(prob(base_message_chance)) - to_chat(M, "[pick("Your lungs feel great.", "You realize you haven't been breathing.", "You don't feel the need to breathe.")]") - return + to_chat(M, "[pick("Your lungs feel great.", "You realize you haven't been breathing.", "You don't feel the need to breathe.")]") + return