From dfbd178147d1ea7db5c461b4899dc55e1e186898 Mon Sep 17 00:00:00 2001 From: Will/KJW <100206101+SpicyBagpipes@users.noreply.github.com> Date: Fri, 25 Oct 2024 01:17:18 +0100 Subject: [PATCH] Update ACE_Medical_Treatment_Actions.hpp --- addons/hypothermia/ACE_Medical_Treatment_Actions.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/hypothermia/ACE_Medical_Treatment_Actions.hpp b/addons/hypothermia/ACE_Medical_Treatment_Actions.hpp index b6aaf9ef6..156155112 100644 --- a/addons/hypothermia/ACE_Medical_Treatment_Actions.hpp +++ b/addons/hypothermia/ACE_Medical_Treatment_Actions.hpp @@ -4,7 +4,7 @@ class ACE_Medical_Treatment_Actions { class ApplyHandWarmers: BasicBandage { displayName = CSTRING(Use_Handwarmer); displayNameProgress = CSTRING(Using); - condition = "true"; + condition = QUOTE(GVAR(hypothermiaActive)); treatmentLocations = 0; treatmentTime = 5; allowedSelections[] = {"Body", "LeftArm", "RightArm", "LeftLeg", "RightLeg"}; @@ -19,7 +19,7 @@ class ACE_Medical_Treatment_Actions { medicRequired = QACEGVAR(medical_treatment,medicIV); treatmentTime = 10; items[] = {"kat_fluidWarmer"}; - condition = QUOTE(([ARR_3(_medic,_patient,_bodyPart)] call EFUNC(pharma,removeIV)) && !([ARR_2(_patient,_bodyPart)] call FUNC(removeWarmer))); + condition = QUOTE(([ARR_3(_medic,_patient,_bodyPart)] call EFUNC(pharma,removeIV)) && !([ARR_2(_patient,_bodyPart)] call FUNC(removeWarmer)) && GVAR(hypothermiaActive)); callbackSuccess = QFUNC(applyFluidWarmer); }; class RemoveFluidWarmer: BasicBandage { @@ -30,7 +30,7 @@ class ACE_Medical_Treatment_Actions { medicRequired = QACEGVAR(medical_treatment,medicIV); treatmentTime = 10; items[] = {}; - condition = QUOTE([ARR_2(_patient,_bodyPart)] call FUNC(removeWarmer)); + condition = QUOTE([ARR_2(_patient,_bodyPart)] call FUNC(removeWarmer) && GVAR(hypothermiaActive)); callbackSuccess = QFUNC(removeFluidWarmer); }; class CheckTemperature: CheckPulse {