Port Omu CPR Fixes #731

Merged
LilithArson merged 2 commits from duuckie/port-omu-cpr-fixes into master 2026-07-31 21:32:07 +00:00 AGit
Contributor

Short description

ports omustation's https://github.com/ProjectOmu/OmuStation/pull/1315 (that i made)

make CPR's fail text show up appropriately instead of leaving you confused as to why you just can't do CPR i guess
fixes minor bug that let you do CPR with a patient that has a mask on
stops people from doing CPR if they're not supposed to continue to do it

Why we need to add this

heavily reduces confusion over why CPR just don't fuckin' work, especially with limiting CPR to only a select few
other aspects are more or less bug fixes

side note, just realized that you CAN trigger the "stop CPR if you're suddenly don't meet the conditions to start CPR" by just pulling up your mask

Media (Video/Screenshots)

Checklist

Breaking changes

Ingame Changelog

🆑 Duuckie

  • fix: CPR shows proper fail text for when you're not able to do it. You can also no longer do CPR through your patient's mask, and you can't continue doing CPR if you suddenly don't meet the conditions to start CPR while mid-CPR.
<!-- Link definitions, do not edit --> [guidelines]: https://docs.spacestation14.com/en/general-development/codebase-info/pull-request-guidelines.html [ruleset]: https://rules.byrdstation.space/#h.vigrxrnffwji ## Short description <!-- What do you propose to change with your PR? --> ports omustation's https://github.com/ProjectOmu/OmuStation/pull/1315 (that i made) make CPR's fail text show up appropriately instead of leaving you confused as to why you just can't do CPR i guess fixes minor bug that let you do CPR with a patient that has a mask on stops people from doing CPR if they're not supposed to continue to do it ## Why we need to add this <!-- What is the reason for adding these changes? Please post links to Discussions as well as Bug Reports here. Please describe how this will change the game balance. --> heavily reduces confusion over why CPR just don't fuckin' work, especially with limiting CPR to only a select few other aspects are more or less bug fixes side note, just realized that you CAN trigger the "stop CPR if you're suddenly don't meet the conditions to start CPR" by just pulling up your mask ## Media (Video/Screenshots) <!--If your PR contains in-game changes you must provide screenshots/videos of the changes.--> <video src="/attachments/e8c63560-f806-4cf4-b2d2-b660235057ee" title="20260731-0953-29.7706617" controls></video> ## Checklist <!-- Check boxes for faster reviewing of your PR --> - [X] I do not require assistance to complete the PR. - [X] I have verified that the changes work before posting/requesting review of my PR. - [X] I have added screenshots/videos of the changes, or this PR does not change in-game mechanics. - [X] I have read the [Pull Request and Changelog Guidelines][guidelines] and [Byrd Station's Contributor Ruleset][ruleset]. ## Breaking changes <!-- List any breaking changes, including namespaces, public class/method/field changes, prototype renames; and provide instructions for fixing them. This will be posted in #codebase-changes. --> ### Ingame Changelog <!--If you want the players to know about changes made in this PR, specify them using the template outside the comment. Short and informative.--> :cl: Duuckie - fix: CPR shows proper fail text for when you're not able to do it. You can also no longer do CPR through your patient's mask, and you can't continue doing CPR if you suddenly don't meet the conditions to start CPR while mid-CPR.
Fix CPR Logic & Missing Text (#1315)
Some checks failed
Close PRs on master / run (pull_request_target) Has been skipped
Labels: PR / labeler (pull_request_target) Successful in 6s
Labels: Size / size-label (pull_request_target) Failing after 4s
CRLF Check / CRLF Check (pull_request) Successful in 1m23s
RSI Validator / Validate RSIs (pull_request) Successful in 2m22s
RGA schema validator / YAML RGA schema validator (pull_request) Successful in 5m10s
Map file schema validator / YAML map schema validator (pull_request) Successful in 11m3s
YAML Linter / YAML Linter (pull_request) Successful in 14m45s
Test Packaging / Test Packaging (pull_request) Successful in 36m53s
19adb0d7ba
* fix start CPR logic not checking if target is wearing a mask

* fix the text for failing to start CPR not showing up

it's shitcode and i know it but i don't know a better way to do this

* prevent CPR from continuing if someone blocks your from doing it

did not set attemptfrequency to every tick for performance concerns (as i'm already shitcoding and this might not be so good for the game)

* i meant argument not parameter

arguments are actual, folks

* undo my shitcode for getting the text to show up

* re-implement CPR ingestion text showing up in a non-shitcode way

* Revert "prevent CPR from continuing if someone blocks your from doing it"

This reverts commit abd75c4eac94c459becdfb300b828096405cc5d3.

* re-implement CPR stopping if you don't meet conditions to start CPR

this doesn't have the red interrupt flash though so ehhh whatever at least it's not shitcode

* properly make HasMouthAvailable use nullable out

thought this shit didn't exist but hey it works

no new video because changes are all on backend

* refactored the WHOOOLE fucking thing to properly add in text when interrupted doing CPR

also added lines that make more sense and help reduce ambiguity

* re-add the byte order mark (BOM) to this file to avoid confusing diffs

see also https://en.wikipedia.org/wiki/Byte_order_mark

---------

Co-authored-by: fish <fish@zcx.pw>
kill SPDX on omu's cpr-training-component.ftl
All checks were successful
Labels: Size / size-label (pull_request_target) Successful in 5s
Labels: PR / labeler (pull_request_target) Successful in 6s
RSI Validator / Validate RSIs (pull_request) Successful in 2m41s
CRLF Check / CRLF Check (pull_request) Successful in 3m47s
RGA schema validator / YAML RGA schema validator (pull_request) Successful in 3m48s
Map file schema validator / YAML map schema validator (pull_request) Successful in 11m14s
YAML Linter / YAML Linter (pull_request) Successful in 10m54s
Test Packaging / Test Packaging (pull_request) Successful in 22m37s
PR Changelogs / changelog (pull_request_target) Successful in 54s
0f18f99277
LilithArson referenced this pull request from a commit 2026-07-31 21:32:08 +00:00
byrdbot referenced this pull request from a commit 2026-07-31 21:32:59 +00:00
Sign in to join this conversation.
No description provided.