Skip to content
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

[MIRROR] Removes TRAIT_NOBREATH restriction from CPR, except from self-resp virus #2095

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1107
Original PR: tgstation/tgstation#81522

About The Pull Request

This PR removes the NOBREATH conditional from /mob/living/carbon/human/proc/do_cpr for the CPR-performing mob. Currently, the trait check stops someone from performing CPR even if they possess a functional lungs organ. I have replaced the trait-checking conditional with one that ensures TRAIT_NOBREATH is still checked when it is added by a disease, and two conditionals for checking the lungs.

Additionally, I have changed many failure-related chat messages to use balloon alerts.

Human-type mobs must meet the following requirements for CPR to be administered successfully:

  1. Lungs must exist within the CPR-performing mob.
  2. The lungs in the CPR-performing mob must be in a functional state, and not damaged to the point of organ failure.

Why It's Good For The Game

TRAIT_NOBREATH means you don't need to breathe, not that you are incapable of it.

With the changes in this PR, any /mob/living/carbon/human which has working lungs should still be able to perform CPR even if they don't need to breathe. TRAIT_NOBREATH would be irrelevant for the CPR performer in such a scenario, and the only case where it does apply is in mobs which aren't human-type, like simple mobs. Since CPR is for humans I determined that the trait check is unneeded.

Upon request, I also added a disease-related TRAIT_NOBREATH check which re-establishes the old behavior of the "Self Respiration" virus preventing CPR.

The changes in this PR also benefits downstreams which have additional playable species which have lungs and TRAIT_NOBREATH. For instance many synthetic characters on Nova Sector have cybernetic lungs but the trait check currently prevents them from performing CPR.

Changelog

🆑 A.C.M.O.
qol: CPR can be administered by species which do not need to breathe, so long as they have functional lungs.
/:cl:

…f-resp virus (#1107)

* Removes TRAIT_NOBREATH restriction from CPR, except from self-resp virus (#81522)

* Removes TRAIT_NOBREATH restriction from CPR, except from self-resp virus

---------

Co-authored-by: Dani Glore <[email protected]>
@Iajret Iajret merged commit 246aa6a into master Feb 24, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1107 branch February 24, 2024 22:37
AnywayFarus added a commit that referenced this pull request Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants