mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Treatment - Fix clearing trauma after stitch with multiple wounds (#9420)
fix clear trauma on stitch
This commit is contained in:
parent
d8eb97f4ec
commit
ec96cdf12c
@ -56,7 +56,7 @@ if (GVAR(clearTrauma) == 1) then {
|
||||
private _partIndex = ALL_BODY_PARTS find _bodyPart;
|
||||
TRACE_2("clearTrauma - clearing trauma after stitching",_bodyPart,_treatedWound);
|
||||
private _bodyPartDamage = _patient getVariable [QEGVAR(medical,bodyPartDamage), []];
|
||||
_bodyPartDamage set [_partIndex, (_bodyPartDamage select _partIndex) - _treatedDamageOf];
|
||||
_bodyPartDamage set [_partIndex, (_bodyPartDamage select _partIndex) - (_treatedDamageOf * _treatedAmountOf)];
|
||||
_patient setVariable [QEGVAR(medical,bodyPartDamage), _bodyPartDamage, true];
|
||||
TRACE_2("clearTrauma - healed damage",_bodyPart,_treatedDamageOf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user