mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Liver rework (#31410)
* Remove old stuff * Liver expansion * Slimepeople don't take constant tox damage * oops * Makes this use the helper * Oops * Fixes * Oops * Capitalization * Comment update
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
if(.) //not dead
|
||||
handle_kidneys()
|
||||
check_for_missing_organs()
|
||||
|
||||
if(check_mutations)
|
||||
domutcheck(src)
|
||||
@@ -1016,3 +1017,14 @@
|
||||
total_damage *= 0.05
|
||||
|
||||
adjustToxLoss(total_damage)
|
||||
|
||||
/// A proc that checks for any missing organs and gives you damage for not having them
|
||||
/mob/living/carbon/human/proc/check_for_missing_organs()
|
||||
if(NO_BLOOD in dna.species.species_traits)
|
||||
return
|
||||
|
||||
// Currently only checks for a liver
|
||||
// This has to be here since we can't check this in the on_life of organs
|
||||
var/obj/item/organ/internal/liver = get_int_organ(/obj/item/organ/internal/liver)
|
||||
if(!liver && !isslimeperson(src))
|
||||
adjustToxLoss(2)
|
||||
|
||||
@@ -1152,6 +1152,12 @@
|
||||
affected.custom_pain("You feel a stabbing pain in your chest!")
|
||||
L.linked_organ.receive_damage(max(L.linked_organ.min_bruised_damage - L.linked_organ.damage, 2))
|
||||
|
||||
/mob/living/carbon/human/proc/has_liver_cirrhosis()
|
||||
var/obj/item/organ/internal/liver/liver = get_int_organ(/obj/item/organ/internal/liver)
|
||||
if(!liver || liver.status & ORGAN_ROBOT)
|
||||
return FALSE
|
||||
return liver.get_wound(/datum/wound/cirrhosis)
|
||||
|
||||
/mob/living/carbon/human/resist_restraints(attempt_breaking)
|
||||
if(HAS_TRAIT(src, TRAIT_HULK))
|
||||
say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ))
|
||||
|
||||
Reference in New Issue
Block a user