Files
CHOMPStation2/code/modules/organs/internal/heart.dm
2017-02-27 16:35:56 -05:00

23 lines
661 B
Plaintext

#define PROCESS_ACCURACY 10
/obj/item/organ/internal/heart
name = "heart"
icon_state = "heart-on"
organ_tag = O_HEART
parent_organ = BP_TORSO
dead_icon = "heart-off"
/obj/item/organ/internal/heart/handle_germ_effects()
. = ..() //Up should return an infection level as an integer
if(!.) return
//Endocarditis (very rare, usually for artificially implanted heart valves/pacemakers)
if (. >= 1)
if(prob(1))
owner.custom_pain("Your chest feels uncomfortably tight!",0)
if (. >= 2)
if(prob(1))
owner.custom_pain("A stabbing pain rolls through your chest!",1)
owner.apply_damage(damage = 25, damagetype = HALLOSS, def_zone = parent_organ)