Disable wound reopening when advanced bandages are disabled

This commit is contained in:
ulteq 2016-12-15 14:51:24 +01:00
parent 70a2dc30e7
commit 0ddfd5eb16
2 changed files with 2 additions and 2 deletions

View File

@ -2896,7 +2896,7 @@
<English>Advanced Bandages</English>
</Key>
<Key ID="STR_ACE_Medical_MedicalSettings_advancedBandages_Description">
<English>Enable advanced bandages</English>
<English>Enable advanced bandages (required for wound reopening)</English>
</Key>
<Key ID="STR_ACE_Medical_MedicalSettings_advancedMedication_DisplayName">
<English>Advanced Medication</English>

View File

@ -98,7 +98,7 @@ _openWounds set [_mostEffectiveSpot, _mostEffectiveInjury];
_target setVariable [QEGVAR(medical,openWounds), _openWounds, true];
// Handle the reopening of bandaged wounds
if (_impact > 0 && {EGVAR(medical,woundReopening)}) then {
if (_impact > 0 && {EGVAR(medical,advancedBandages) && {EGVAR(medical,woundReopening)}}) then {
[_target, _impact, _partIndex, _mostEffectiveSpot, _mostEffectiveInjury, _bandage] call FUNC(handleBandageOpening);
};