-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
HealingSystem: check blood restoration, staunching #33526
HealingSystem: check blood restoration, staunching #33526
Conversation
does this stop repeated healing with gauze for pierce damage if they happened to be bleeding? |
No. I think you'll need extra state for that - bleeding reduction, blood restoration, and damage healing are all treated as equally important in all cases (edit: on the current state of the branch). |
Here's a changeset that would do that: https://github.com/space-wizards/space-station-14/compare/master...whatston3:2024-11-24-healingsystem-bleeding-damage-types?expand=1 |
Frontier is licensed for AGPL3. Does it means that this pr will change licence? |
I wrote this, I am making this contribution to this repo under the MIT license. |
Thanks for the review, I'll make the changes in a bit. |
Suggestions made where appropriate. |
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.
Minor style changes rest looks good 👍
The double popup thing is annoying but I think that's kind of out of scope for this PR
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.
Looks great! 👍
About the PR
Healing objects now check for possible blood restoration or bleeding reduction when checking whether or not to allow or repeat healing.
Why / Balance
Fixes #28831.
Porting new-frontiers-14/frontier-station-14#2457.
Technical details
The conditions of HasDamage now check bleeding reduction and target bleeding, and blood restoration and target blood loss.
Media
A video reproducing the steps for #28831 in the test map. The moth is struck with a 200 dmg bang stick, and gauze is applied, stopping the moth's bleeding despite the moth having no pierce or slash damage. The bloodpack is then applied, and repeats successfully, despite the moth having no bloodloss damage.
2024-11-24.14-29-56.mp4
Requirements
Breaking changes
Changelog
🆑