diff --git a/code/modules/surgery/organs/lungs.dm b/code/modules/surgery/organs/lungs.dm index 6afb26664ec..b730c4d559b 100644 --- a/code/modules/surgery/organs/lungs.dm +++ b/code/modules/surgery/organs/lungs.dm @@ -63,6 +63,19 @@ M.clear_alert("too_much_[thing]") return ..() +/obj/item/organ/internal/lungs/on_life() + if(germ_level > INFECTION_LEVEL_ONE) + if(prob(5)) + owner.emote("cough") //respitory tract infection + + if(is_bruised()) + if(prob(2)) + owner.custom_emote(1, "coughs up blood!") + owner.bleed(1) + if(prob(4)) + owner.custom_emote(1, "gasps for air!") + owner.AdjustLoseBreath(5) + /obj/item/organ/internal/lungs/proc/check_breath(datum/gas_mixture/breath, mob/living/carbon/human/H) if((H.status_flags & GODMODE)) return diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm index a5ad0fabe91..f43438417d5 100644 --- a/code/modules/surgery/organs/organ.dm +++ b/code/modules/surgery/organs/organ.dm @@ -1,5 +1,3 @@ -var/list/organ_cache = list() - /obj/item/organ name = "organ" icon = 'icons/obj/surgery.dmi'