From e7197ede639f1baa2c438410b59a9342370d7daf Mon Sep 17 00:00:00 2001 From: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:19:08 -0700 Subject: [PATCH] Fixes Carbonate and reorientation --- .../pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf | 2 +- .../functions/fnc_treatmentAdvanced_ReorientationLocal.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf index e7b60c77d..f6ffcc142 100644 --- a/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf +++ b/addons/pharma/functions/fnc_treatmentAdvanced_CarbonateLocal.sqf @@ -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); }; diff --git a/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf b/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf index b820cf563..2d686d841 100644 --- a/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf +++ b/addons/pharma/functions/fnc_treatmentAdvanced_ReorientationLocal.sqf @@ -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);