Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What Does This PR Do
Reworks how the liver works
min_bruisedthreshold, which is 10 damageIf 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 nanocalciumCirrhosis 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
Declaration
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: