Skip to content

Commit

Permalink
Update fnc_medicationLocal.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
Cplhardcore committed Nov 28, 2024
1 parent 665a949 commit e99d5c8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions addons/pharma/functions/fnc_medicationLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,14 @@ if (GVAR(AMS_Enabled)) then {
if (count _medicationParts > 3) then {
_medicationName = (_medicationParts select 0) + "_" + (_medicationParts select 1);
};
// Adjust the medication effects and add the medication to the list
TRACE_3("adjustments",_heartRateChange,_painReduce,_viscosityChange);
[_patient, _medicationName, _timeTillMaxEffect, _timeInSystem, _heartRateChange, _painReduce, _viscosityChange, _dose, _alphaFactor, _opioidRelief, _opioidEffect, _opioidDepression, _respiratoryRate] call EFUNC(vitals,addMedicationAdjustment);

// Check for medication compatiblity
[_patient, _medicationName, _incompatibleMedication] call ACEFUNC(medical_treatment,onMedicationUsage);
} else {
// Adjust the medication effects and add the medication to the list
TRACE_3("adjustments",_heartRateChange,_painReduce,_viscosityChange);
[_patient, _className, _timeTillMaxEffect, _timeInSystem, _heartRateChange, _painReduce, _viscosityChange, _dose, _alphaFactor, _opioidRelief, _opioidEffect, _opioidDepression, _respiratoryRate] call EFUNC(vitals,addMedicationAdjustment);

// Check for medication compatiblity

[_patient, _className, _incompatibleMedication] call ACEFUNC(medical_treatment,onMedicationUsage);
};

Expand Down

0 comments on commit e99d5c8

Please sign in to comment.