mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Addresses the large amount of bandages required in basic medical
This should restore the bandaging behavior back to how it is before the adjustments made to basic medical
This commit is contained in:
parent
8c60e76979
commit
33ac78dbac
@ -25,7 +25,14 @@ _part = [_selectionName] call FUNC(selectionNameToNumber);
|
||||
if (_part < 0) exitwith {false};
|
||||
|
||||
if ((_damageBodyParts select _part) > 0) then {
|
||||
_damageBodyParts set [_part, ((_damageBodyParts select _part) - BANDAGEHEAL) max 0];
|
||||
_damageOnPart = (_damageBodyParts select _part);
|
||||
// Temp quick fix to change in behaviour of basic medical bandaging
|
||||
if (_damageOnPart - BANDAGEHEAL > 0) then {
|
||||
_damageOnPart = _damageOnPart * BANDAGEHEAL;
|
||||
} else {
|
||||
_damageOnPart = _damageOnPart - BANDAGEHEAL;
|
||||
};
|
||||
_damageBodyParts set [_part, _damageOnPart max 0];
|
||||
_target setvariable [QGVAR(bodyPartStatus), _damageBodyParts, true];
|
||||
TRACE_2("ACE_DEBUG: Treatment BASIC Bandage Broadcast value here",_unit, _target getvariable QGVAR(bodyPartStatus));
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user