Skip to content

Conversation

@DGamerL
Copy link
Member

@DGamerL DGamerL commented Jan 7, 2026

What Does This PR Do

Reworks how the liver works

  • If you have no toxin damage, you heal 0.1 liver damage per second, as long as your damage is less than your min_bruised threshold, which is 10 damage
  • If your toxin damage is between 0 and 40, you heal 0.1 toxin damage per second
  • If your toxin damage is between 40 and 80, you heal 0.2 toxin damage per second
  • If your toxin damage is above 80, you heal 0.1 toxin damage per second and you take 0.2 liver damage per second
  • A dead or missing liver deals 1 toxin damage per second

If your liver has been at or above half your max hp in damage for about 3 minutes, you get cirrhosis. The time your liver has been damaged for does not decrease, so you can get cirrhosis from having 3 standalone minutes of high liver damage. The time resets when the limb is fully healed with rejuvenate(), or with nanocalcium

Cirrhosis has two stages, mild and severe
Mild deals 0.25 toxin per second, caps your max liver hp to 40 and if you have more than half your max hp in damage, a 5% chance to become severe
Severe cirrhosis will cap your max liver hp to 20, deal 0.5 toxin damage per second and deal 0.05 liver damage per second, a Time To Kill of about 400 seconds.
Cirrhosis can only be cured by applying mannitol to the liver (anything that calls rejuvenate() on the limb)

Additionally, the cybernetic livers get some upgrades:
The basic liver now hals an alcohol intensity modifier of 0.5
Both livers can't get cirrhosis

An upgraded cybernetic liver has been added, this doubles passive healing, doesn't take passive damage and has an alcohol intensity modifier of 0.25

Also doubles the chance for heavy drinking to make you faint and take liver damage. This way your liver will be punished in a reasonable timeframe from drinking too much. Average Time to Kill Liver is 10 minutes to get into cirrhosis range, and then it's 3 more minutes for you to develop cirrhosis

Why It's Good For The Game

Having organs be more relevant in medical is neat
The liver really didn't do many interesting things, it mostly took irrelevant damage and healed it back up when you were treated with the most common toxin medication
This should make having a liver be quite important

Testing

image image

Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

🆑
tweak: Livers got a full rework, check out the PR page for all the info
add: Livers that have been damaged for a few minutes develop Cirrhosis
add: Advanced cybernetic liver
/:cl:

@ParadiseSS13-Bot ParadiseSS13-Bot added Testmerge Requested This PR has a pending testmerge request TGUI This PR modifies TGUI, will conflict -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally labels Jan 7, 2026
@Vanilorx
Copy link

Vanilorx commented Jan 8, 2026

what does getting hit with an emp do with a cybernetic liver now?

@DGamerL
Copy link
Member Author

DGamerL commented Jan 8, 2026

what does getting hit with an emp do with a cybernetic liver now?

Just like every other cybernetic organ, deals damage to the organ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

-Status: Awaiting type assignment This PR is waiting for its type to be assigned internally Testmerge Requested This PR has a pending testmerge request TGUI This PR modifies TGUI, will conflict

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants