mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2683 316c924e-a436-60f5-8080-3fe189b3f50e
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
/datum/disease/appendicitis
|
|
form = "Condition"
|
|
name = "Appendicitis"
|
|
max_stages = 3
|
|
spread = "Acute"
|
|
cure = "Surgery"
|
|
agent = "Shitty Appendix"
|
|
affected_species = list("Human")
|
|
permeability_mod = 1
|
|
contagious_period = 9001 //slightly hacky, but hey! whatever works, right?
|
|
desc = "If left untreated the subject will become very weak, and may vomit often."
|
|
severity = "Medium"
|
|
longevity = 1000
|
|
hidden = list(0, 1)
|
|
|
|
/datum/disease/appendicitis/stage_act()
|
|
..()
|
|
switch(stage)
|
|
if(1)
|
|
if(prob(5)) affected_mob.emote("cough")
|
|
if(2)
|
|
if(prob(3))
|
|
affected_mob << "\red You feel a stabbing pain in your abdomen!"
|
|
affected_mob.Stun(rand(2,3))
|
|
affected_mob.adjustToxLoss(1)
|
|
if(3)
|
|
if(prob(1))
|
|
if (affected_mob.nutrition > 100)
|
|
affected_mob.Stun(rand(4,6))
|
|
affected_mob << "\red You throw up!"
|
|
var/turf/location = affected_mob.loc
|
|
if (istype(location, /turf/simulated))
|
|
location.add_vomit_floor(affected_mob)
|
|
affected_mob.nutrition -= 95
|
|
affected_mob.adjustToxLoss(-1)
|
|
else
|
|
affected_mob << "\red You gag as you want to throw up, but there's nothing in your stomach!"
|
|
affected_mob.Weaken(10)
|
|
affected_mob.adjustToxLoss(3) |