mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 01:13:18 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
/datum/disease/appendicitis
|
|
form = "Condition"
|
|
name = "Appendicitis"
|
|
max_stages = 3
|
|
cure_text = "Surgery"
|
|
agent = "Shitty Appendix"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
permeability_mod = 1
|
|
desc = "If left untreated the subject will become very weak, and may vomit often."
|
|
severity = DISEASE_SEVERITY_MEDIUM
|
|
disease_flags = CAN_CARRY|CAN_RESIST
|
|
spread_flags = DISEASE_SPREAD_NON_CONTAGIOUS
|
|
visibility_flags = HIDDEN_PANDEMIC
|
|
required_organs = list(/obj/item/organ/appendix)
|
|
bypasses_immunity = TRUE // Immunity is based on not having an appendix; this isn't a virus
|
|
|
|
|
|
/datum/disease/appendicitis/stage_act(delta_time, times_fired)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
|
|
switch(stage)
|
|
if(1)
|
|
if(DT_PROB(2.5, delta_time))
|
|
affected_mob.emote("cough")
|
|
if(2)
|
|
var/obj/item/organ/appendix/A = affected_mob.getorgan(/obj/item/organ/appendix)
|
|
if(A)
|
|
A.inflamed = 1
|
|
A.update_appearance()
|
|
if(DT_PROB(1.5, delta_time))
|
|
to_chat(affected_mob, span_warning("You feel a stabbing pain in your abdomen!"))
|
|
affected_mob.adjustOrganLoss(ORGAN_SLOT_APPENDIX, 5)
|
|
affected_mob.Stun(rand(40, 60))
|
|
affected_mob.adjustToxLoss(1, FALSE)
|
|
if(3)
|
|
if(DT_PROB(0.5, delta_time))
|
|
affected_mob.vomit(95)
|
|
affected_mob.adjustOrganLoss(ORGAN_SLOT_APPENDIX, 15)
|