Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkIsGrim authored Oct 19, 2024
1 parent 7e1e45f commit 85a5105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/medical_treatment/functions/fnc_overDose.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

params ["_unit", "_classname"];

private _medicationConfig = configFile >> "ace_medical_treatment" >> _classname;
private _onOverDose = getText (_medicationConfig >> "onOverDose");

Expand All @@ -27,13 +28,16 @@ if (isClass _medicationConfig) then {
};
};
TRACE_2("overdose",_classname,_onOverDose);

if (_onOverDose == "") exitWith {
TRACE_1("CriticalVitals Event",_unit);
[QEGVAR(medical,CriticalVitals), _unit] call CBA_fnc_localEvent;
};

if (isNil _onOverDose) then {
_onOverDose = compile _onOverDose;
} else {
_onOverDose = missionNamespace getVariable _onOverDose;
};

[_target, _className] call _onOverDose

0 comments on commit 85a5105

Please sign in to comment.