Always visualize bandaged wounds

* Even when GVAR(advancedBandages) or GVAR(woundReopening) are disabled
This commit is contained in:
ulteq 2016-12-15 15:01:02 +01:00
parent 0ddfd5eb16
commit 1e79f35e43
2 changed files with 22 additions and 0 deletions

View File

@ -106,6 +106,17 @@ if (_show == 1) then {
} else {
_allInjuryTexts pushBack [format["Partial %1", _woundDescription], [1,1,1,1]];
};
} else {
if (!EGVAR(medical,advancedBandages) || {!EGVAR(medical,woundReopening)}) then {
private _className = (EGVAR(medical_damage,woundsData) select _woundClassID) select 6;
private _postfix = ["Minor", "Medium", "Large"] select _category;
private _woundDescription = localize format [ELSTRING(medical_damage,%1_%2), _className, _postfix];
if (_amountOf >= 1) then {
_allInjuryTexts pushBack [format ["[B] %2x %1", _woundDescription, ceil _amountOf], [0.7,0.7,0.7,1]];
} else {
_allInjuryTexts pushBack [format ["[B] Partial %1", _woundDescription], [0.7,0.7,0.7,1]];
};
};
};
};
} forEach (_target getVariable [QEGVAR(medical,openWounds), []]);

View File

@ -84,6 +84,17 @@ private _allInjuryTexts = [];
} else {
_allInjuryTexts pushBack [format["Partial %1", _woundDescription], [1,1,1,1]];
};
} else {
if (!EGVAR(medical,advancedBandages) || {!EGVAR(medical,woundReopening)}) then {
private _className = (EGVAR(medical_damage,woundsData) select _woundClassID) select 6;
private _postfix = ["Minor", "Medium", "Large"] select _category;
private _woundDescription = localize format [ELSTRING(medical_damage,%1_%2), _className, _postfix];
if (_amountOf >= 1) then {
_allInjuryTexts pushBack [format ["[B] %2x %1", _woundDescription, ceil _amountOf], [0.7,0.7,0.7,1]];
} else {
_allInjuryTexts pushBack [format ["[B] Partial %1", _woundDescription], [0.7,0.7,0.7,1]];
};
};
};
};
} forEach (_target getVariable [QEGVAR(medical,openWounds), []]);