-
-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor rework to how toxic chemicals work #22504
base: master
Are you sure you want to change the base?
Conversation
code/modules/surgery/organs/liver.dm
Outdated
toxpwr += T.toxpwr | ||
provide_pain_message = provide_pain_message || !T.silent_toxin | ||
|
||
sort_list(toxpwr, cmp = /proc/cmp_numeric_dsc) //sort all toxpowers scaling from highest to lowest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this should probably be cached on the liver and updated whenever a toxin is added or removed from the body so you don't have to sort the list every single tick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guh, i considered that but it sounds like a lot of work
i really should implement sarah's suggestion, but i don't have the motivation, and haven't for a while |
How we looking @Moltijoe |
Toxic chemicals now work by
Put the toxpower of every chemical in a list in descending order
first chemical (highest) does full damage
second chemical does 50% reduced damage
third chemical does 75% reduced damage
fourth chemical does 87.5% reduced damage
and so forth and so on
Why is this good for the game?
i hate the arbitrary purge threshold, it makes certain toxins that are designed to be potent in small amounts utterly useless, as they get instantly purged when low
Changing it to this allows for something like cyanide to actually be good in small doses
while still preventing loading a syringe with 1u of 30 different toxins to instantly kill someone
Gave polys a toxmod to account for their livers being nerfed a bit
Testing
🆑
tweak: Polysmorph now have a 0.8 toxmod
tweak: Livers no longer instantly purge toxic chemicals when below an arbitrary number
tweak: Toxic chemicals now deal half damage for every stronger toxin in the bloodstream
tweak: Toxic chemicals now no longer scale liver damage with volume
/:cl: