Le Kidney Beans (#7672)

rscadd: "Adds the ability to remove appendix and other organs in character setup."
    rscadd: "Adds two kidneys! Splits the work up between the two organs."

Also adds the ability for a mechanical liver and kidneys,appendix
This commit is contained in:
Lady Fowl
2019-12-17 07:22:08 -08:00
committed by Erki
parent 609cccbf09
commit fce3617857
16 changed files with 121 additions and 23 deletions

View File

@@ -1,8 +1,8 @@
/obj/item/organ/internal/kidneys
name = "kidneys"
name = "kidney"
icon_state = "kidneys"
gender = PLURAL
organ_tag = BP_KIDNEYS
organ_tag = BP_LKIDNEY
parent_organ = BP_GROIN
robotic_name = "prosthetic kidneys"
robotic_sprite = "kidneys-prosthetic"
@@ -25,21 +25,42 @@
var/datum/reagent/coffee = locate(/datum/reagent/drink/coffee) in owner.reagents.reagent_list
if(coffee)
if(is_bruised())
owner.adjustToxLoss(0.1 * PROCESS_ACCURACY)
owner.adjustToxLoss(0.1 * PROCESS_ACCURACY / 2)
else if(is_broken())
owner.adjustToxLoss(0.3 * PROCESS_ACCURACY)
owner.adjustToxLoss(0.3 * PROCESS_ACCURACY / 2)
if(is_bruised())
if(prob(5) && reagents.get_reagent_amount("potassium") < 5)
reagents.add_reagent("potassium", REM*5)
reagents.add_reagent("potassium", REM*5 / 2)
if(is_broken())
if(owner.reagents.get_reagent_amount("potassium") < 15)
owner.reagents.add_reagent("potassium", REM*2)
owner.reagents.add_reagent("potassium", REM*2 / 2)
//If your kidneys aren't working, your body's going to have a hard time cleaning your blood.
if(!owner.chem_effects[CE_ANTITOXIN])
if(prob(33))
if(is_broken())
owner.adjustToxLoss(0.5)
owner.adjustToxLoss(0.3)
if(status & ORGAN_DEAD)
owner.adjustToxLoss(1)
owner.adjustToxLoss(0.5)
/obj/item/organ/internal/kidneys/attackby(var/obj/item/I, var/mob/user)
..()
if(istype(I, /obj/item/hemostat))
if(src.organ_tag == BP_LKIDNEY)
to_chat(usr, "You prepare the kidney for placement on the right side.")
organ_tag = BP_RKIDNEY
name = "right kidney"
else if(organ_tag == BP_RKIDNEY)
organ_tag = BP_LKIDNEY
to_chat(usr, "You prepare the kidney for placement on the left side.")
name = "left kidney"
/obj/item/organ/internal/kidneys/left
name = "left kidney"
organ_tag = BP_LKIDNEY
robotic_name = "prosthetic left kidneys"
/obj/item/organ/internal/kidneys/right
name = "right kidney"
robotic_name = "prosthetic right kidney"
organ_tag = BP_RKIDNEY