Medical Treatment - Fix clearing trauma after stitch with multiple wounds (#9420)

fix clear trauma on stitch
This commit is contained in:
Grim 2023-09-23 12:59:10 -04:00 committed by GitHub
parent d8eb97f4ec
commit ec96cdf12c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);