mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 11:30:35 +01:00
@@ -8,6 +8,7 @@
|
||||
var/toxin_type = "undefined"
|
||||
var/relative_size = 25 //Used for size calcs
|
||||
var/on_mob_icon
|
||||
var/list/possible_modifications = list("Normal","Assisted","Mechanical") //this is used in the character setup
|
||||
|
||||
min_broken_damage = 10 //Internal organs are frail, man.
|
||||
|
||||
|
||||
@@ -2,4 +2,49 @@
|
||||
name = "appendix"
|
||||
icon_state = "appendix"
|
||||
parent_organ = BP_GROIN
|
||||
organ_tag = BP_APPENDIX
|
||||
organ_tag = BP_APPENDIX
|
||||
possible_modifications = list ("Normal","Removed")
|
||||
var/inflamed = 0
|
||||
|
||||
/obj/item/organ/internal/appendix/update_icon()
|
||||
..()
|
||||
if(inflamed)
|
||||
icon_state = "[icon_state]inflamed"
|
||||
name = "inflamed [name]"
|
||||
|
||||
/obj/item/organ/internal/appendix/process()
|
||||
..()
|
||||
if(inflamed && owner)
|
||||
inflamed++
|
||||
if(prob(5))
|
||||
if(owner.can_feel_pain())
|
||||
owner.custom_pain("You feel a stinging pain in your abdomen!")
|
||||
owner.visible_message("<B>\The [owner]</B> winces slightly.")
|
||||
var/obj/item/organ/external/O = owner.get_organ(parent_organ)
|
||||
if(O)
|
||||
O.add_pain(10)
|
||||
if(inflamed > 200)
|
||||
if(prob(3))
|
||||
take_internal_damage(0.1)
|
||||
if(owner.can_feel_pain())
|
||||
owner.visible_message("<B>\The [owner]</B> winces painfully.")
|
||||
var/obj/item/organ/external/O = owner.get_organ(parent_organ)
|
||||
if(O)
|
||||
O.add_pain(25)
|
||||
owner.adjustToxLoss(1)
|
||||
if(inflamed > 400)
|
||||
if(prob(1))
|
||||
germ_level += rand(2,6)
|
||||
owner.vomit()
|
||||
if(inflamed > 600)
|
||||
if(prob(1))
|
||||
if(owner.can_feel_pain())
|
||||
owner.custom_pain("You feel a stinging pain in your abdomen!")
|
||||
owner.Weaken(10)
|
||||
|
||||
var/obj/item/organ/external/E = owner.get_organ(parent_organ)
|
||||
E.sever_artery()
|
||||
E.germ_level = max(INFECTION_LEVEL_TWO, E.germ_level)
|
||||
owner.adjustToxLoss(25)
|
||||
removed()
|
||||
qdel(src)
|
||||
Reference in New Issue
Block a user