Skip to content

Commit

Permalink
Pharma - Fix Carbonate and reorientation (#603)
Browse files Browse the repository at this point in the history
**When merged this pull request will:**
- Changes the has stable vitals check in reorientation and carbonate to
check in the right place
- 

### IMPORTANT

- [Development Guidelines](https://ace3.acemod.org/wiki/development/)
are read, understood and applied.
- Title of this PR uses our standard template `Component -
Add|Fix|Improve|Change|Make|Remove {changes}`.
  • Loading branch information
Cplhardcore authored Oct 3, 2024
1 parent d3e0444 commit 846aa86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ if (_sedated) exitWith {};

private _bloodPressureH = GET_BLOOD_PRESSURE(_patient) select 1;

if ((floor (random 100) < ((linearConversion [50, 100, _bloodPressureH, 0, GVAR(carbonateChance), true]) min (linearConversion [140, 200, _bloodPressureH, GVAR(carbonateChance), 0, true]))) && {[_patient] call EFUNC(misc,hasStableVitals)}) then {
if ((floor (random 100) < ((linearConversion [50, 100, _bloodPressureH, 0, GVAR(carbonateChance), true]) min (linearConversion [140, 200, _bloodPressureH, GVAR(carbonateChance), 0, true]))) && {[_patient] call EFUNC(vitals,hasStableVitals)}) then {
[_patient, false] call ACEFUNC(medical,setUnconscious);
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ params ["_medic", "_patient"];

private _pulse = GET_HEART_RATE(_patient);

if ((floor (random 100) < ((linearConversion [40, 79, _pulse, 0, GVAR(reorientationChance), true]) min (linearConversion [80, 220, _pulse, GVAR(reorientationChance), 0, true]))) && {[_patient] call EFUNC(misc,hasStableVitals)}) then {
if ((floor (random 100) < ((linearConversion [40, 79, _pulse, 0, GVAR(reorientationChance), true]) min (linearConversion [80, 220, _pulse, GVAR(reorientationChance), 0, true]))) && {[_patient] call EFUNC(vitals,hasStableVitals)}) then {
[_patient, false] call ACEFUNC(medical,setUnconscious);
_output = LLSTRING(ReorientingSuccess);
[_output, 1.5, _medic] call ACEFUNC(common,displayTextStructured);
Expand Down

0 comments on commit 846aa86

Please sign in to comment.