Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cplhardcore committed Dec 2, 2024
1 parent 196f6fd commit a96a8b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/circulation/ACE_Medical_Treatment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class ACE_Medical_Treatment {
hrIncreaseHigh[] = {-10, -20};
timeInSystem = 7;
timeTillMaxEffect = 1;
dose = 0.1
dose = 0.1;
incompatibleMedication[] = {};
viscosityChange = 0;
volume = 500;
Expand Down
6 changes: 3 additions & 3 deletions addons/pharma/functions/fnc_getBloodVolumeChange.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ if (!isNil {_unit getVariable [QACEGVAR(medical,ivBags),[]]}) then {
};
};
} else {
private _className = format {%1_IV, _type};
private _className = format {"%1_IV", _type};

Check failure on line 111 in addons/pharma/functions/fnc_getBloodVolumeChange.sqf

View workflow job for this annotation

GitHub Actions / build

unparseable syntax

unparseable syntax
private _IVflow = _unit getVariable [QGVAR(IVflow), [0,0,0,0,0,0]];
private _defaultConfig = configFile >> QUOTE(ACE_ADDON(Medical_Treatment)) >> "IV";
private _ivConfig = _defaultConfig >> _className;
Expand Down Expand Up @@ -165,14 +165,14 @@ if (!isNil {_unit getVariable [QACEGVAR(medical,ivBags),[]]}) then {
{ _ECP = _ECP + _bagChange; _lossVolumeChange = _lossVolumeChange + (_bagChange / ML_TO_LITERS); };
};
};
}
};

if (_bagVolumeRemaining < 0.01) then {
[]
} else {
[_bagVolumeRemaining, _type, _bodyPart]
};
};
_bloodBags = _bloodBags - [[]]; // remove empty bags

private _totalFlowAmount = 0;
Expand Down

0 comments on commit a96a8b8

Please sign in to comment.