Fixed reagent pressure threshold not working #1009

Merged
EchoOfNothing merged 1 commit from QuillTheCreature/Byrd:systems/reagents/pressurethreshold into master 2026-10-11 11:24:51 +00:00
Member

Short description

Lux pen wasn't working since the pressure threshold effect was setup wrongly.

There was a Shared system which always returned false; meaning the class inside the server module never ran.

I updated it to use the EventEntityEffectCondition system which sends out a local event, meaning the server class can react to it properly.

On top of that this also fixes the actual condition and allows only one bounds to be set at once. So for example for the lux pen, only a maximum pressure is set, in the old system the condition would always return false as min is null.

Why we need to add this

Bugfix

Media (Video/Screenshots)

Checklist

Ingame Changelog

🆑 Quill

  • fix: Fixed pressure threshold effects not working, meaning luxury medipens finally work properly.
<!-- 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 Lux pen wasn't working since the pressure threshold effect was setup wrongly. There was a Shared system which always `returned false;` meaning the class inside the server module never ran. I updated it to use the `EventEntityEffectCondition` system which sends out a local event, meaning the server class can react to it properly. On top of that this also fixes the actual condition and allows only one bounds to be set at once. So for example for the lux pen, only a maximum pressure is set, in the old system the condition would always return false as min is null. ## Why we need to add this Bugfix ## Media (Video/Screenshots) <video src="/attachments/22350247-48f2-4e67-95a0-8ef8f567e2c4" title="Screencast_20261008_211557" 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]. ### Ingame Changelog :cl: Quill - fix: Fixed pressure threshold effects not working, meaning luxury medipens finally work properly.
Fixed reagent pressure threshold not working
Some checks failed
Close PRs on master / run (pull_request_target) Has been skipped
Labels: PR / labeler (pull_request_target) Successful in 5s
Labels: Size / size-label (pull_request_target) Failing after 4s
CRLF Check / CRLF Check (pull_request) Successful in 36s
Test Packaging / Test Packaging (pull_request) Successful in 13m22s
RGA schema validator / YAML RGA schema validator (pull_request) Successful in 45s
RSI Validator / Validate RSIs (pull_request) Successful in 44s
Map file schema validator / YAML map schema validator (pull_request) Successful in 5m27s
YAML Linter / YAML Linter (pull_request) Successful in 5m10s
PR Changelogs / changelog (pull_request_target) Successful in 41s
1165547607
EchoOfNothing left a comment

LGTM. Thank you for your contribution!

LGTM. Thank you for your contribution!
Owner

@QuillTheCreature
Cool change log 👍👍👍 I love fun!

@QuillTheCreature Cool change log 👍👍👍 I love fun!
byrdbot referenced this pull request from a commit 2026-10-11 11:28:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Byrd-Station/Byrd!1009
No description provided.