forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
290e913
commit d0ea5ee
Showing
87 changed files
with
798 additions
and
481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
/datum/disease/critical | ||
|
||
/datum/disease/critical/stage_act() //overriden to ensure unique behavior | ||
stage = min(stage, max_stages) | ||
|
||
if(prob(stage_prob)) | ||
stage = min(stage + 1, max_stages) | ||
|
||
for(var/C_id in cures) | ||
if(affected_mob.reagents.has_reagent(C_id)) | ||
if(prob(cure_chance)) | ||
cure() | ||
return FALSE | ||
return TRUE | ||
|
||
/datum/disease/critical/shock | ||
name = "Shock" | ||
form = "Medical Emergency" | ||
spread_text = "The patient is in shock" | ||
max_stages = 3 | ||
spread_flags = SPECIAL | ||
cure_text = "Saline Solution" | ||
cures = list("salglu_solution") | ||
cure_chance = 10 | ||
viable_mobtypes = list(/mob/living/carbon/human) | ||
stage_prob = 6 | ||
severity = DANGEROUS | ||
disease_flags = CURABLE | ||
bypasses_immunity = TRUE | ||
virus_heal_resistant = TRUE | ||
|
||
/datum/disease/critical/shock/stage_act() | ||
if(..()) | ||
if(affected_mob.health >= 25) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
switch(stage) | ||
if(1) | ||
if(prob(1) && prob(10)) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
if(prob(8)) | ||
affected_mob.emote(pick("shiver", "pale", "moan")) | ||
if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>You feel weak!</span>") | ||
if(2) | ||
if(prob(1) && prob(10)) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
if(prob(8)) | ||
affected_mob.emote(pick("shiver", "pale", "moan", "shudder", "tremble")) | ||
if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>You feel absolutely terrible!</span>") | ||
if(prob(5)) | ||
affected_mob.emote("faint", "collapse", "groan") | ||
if(3) | ||
if(prob(1) && prob(10)) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
if(prob(8)) | ||
affected_mob.emote(pick("shudder", "pale", "tremble", "groan", "bshake")) | ||
if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>You feel horrible!</span>") | ||
if(prob(5)) | ||
affected_mob.emote(pick("faint", "collapse", "groan")) | ||
if(prob(7)) | ||
to_chat(affected_mob, "<span class='danger'>You can't breathe!</span>") | ||
affected_mob.AdjustLoseBreath(1) | ||
if(prob(5)) | ||
var/datum/disease/D = new /datum/disease/critical/heart_failure | ||
affected_mob.ForceContractDisease(D) | ||
|
||
/datum/disease/critical/heart_failure | ||
name = "Cardiac Failure" | ||
form = "Medical Emergency" | ||
spread_text = "The patient is having a cardiac emergency" | ||
max_stages = 3 | ||
spread_flags = SPECIAL | ||
cure_text = "Cardiac Stimulants" | ||
cures = list("atropine", "epinephrine") | ||
cure_chance = 10 | ||
needs_all_cures = FALSE | ||
viable_mobtypes = list(/mob/living/carbon/human) | ||
stage_prob = 5 | ||
severity = DANGEROUS | ||
disease_flags = CURABLE | ||
required_organs = list(/obj/item/organ/internal/heart) | ||
bypasses_immunity = TRUE | ||
virus_heal_resistant = TRUE | ||
|
||
/datum/disease/critical/heart_failure/stage_act() | ||
if(..()) | ||
switch(stage) | ||
if(1) | ||
if(prob(1) && prob(10)) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
if(prob(8)) | ||
affected_mob.emote(pick("pale", "shudder")) | ||
if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>Your arm hurts!</span>") | ||
else if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>Your chest hurts!</span>") | ||
if(2) | ||
if(prob(1) && prob(10)) | ||
to_chat(affected_mob, "<span class='notice'>You feel better.</span>") | ||
cure() | ||
return | ||
if(prob(8)) | ||
affected_mob.emote(pick("pale", "groan")) | ||
if(prob(5)) | ||
to_chat(affected_mob, "<span class='danger'>Your heart lurches in your chest!</span>") | ||
affected_mob.AdjustLoseBreath(1) | ||
if(prob(3)) | ||
to_chat(affected_mob, "<span class='danger'>Your heart stops beating!</span>") | ||
affected_mob.AdjustLoseBreath(3) | ||
if(prob(5)) | ||
affected_mob.emote(pick("faint", "collapse", "groan")) | ||
if(3) | ||
affected_mob.adjustOxyLoss(1) | ||
if(prob(8)) | ||
affected_mob.emote(pick("twitch", "gasp")) | ||
if(prob(5) && ishuman(affected_mob)) | ||
var/mob/living/carbon/human/H = affected_mob | ||
H.set_heartattack(TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.