Skip to content

Medical Treatment / GUI - Add support for mixed fluid iv bags#11046

Merged
PabstMirror merged 5 commits intoacemod:masterfrom
DartRuffian:medical/custom-fluids
Oct 5, 2025
Merged

Medical Treatment / GUI - Add support for mixed fluid iv bags#11046
PabstMirror merged 5 commits intoacemod:masterfrom
DartRuffian:medical/custom-fluids

Conversation

@DartRuffian
Copy link
Copy Markdown
Contributor

@DartRuffian DartRuffian commented Sep 1, 2025

When merged this pull request will:

  • Makes ratio function, can now have iv bags with mixed fluids
    • Simulated by using smaller iv bags with lower rate coefficients
  • GUI uses gui_message param in treatment config

_ivBags pushBack [_volume, _type, _partIndex, _treatment, _rateCoef, _item];

// Simulate mixed fluid bags by using multiple smaller ivs. rateCoef is lowered to compensate
if (count _ratio > 2) then {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (count _ratio > 2) then {
if (count _ratio >= 2) then {

Not sure, but it might be safer to use if the config exists?

Copy link
Copy Markdown
Contributor Author

@DartRuffian DartRuffian Sep 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did > 2 because the existing fluids already have "Blood", 1 (or whatever fluid) so using >= is just more complex logic to do the same thing

@PabstMirror PabstMirror added this to the 3.20.1 milestone Sep 21, 2025
@PabstMirror PabstMirror added the kind/change Release Notes: **CHANGED:** label Sep 21, 2025
@PabstMirror PabstMirror merged commit 77e4d9a into acemod:master Oct 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/change Release Notes: **CHANGED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants