mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
23 lines
661 B
Plaintext
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)
|