mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Always visualize bandaged wounds
* Even when GVAR(advancedBandages) or GVAR(woundReopening) are disabled
This commit is contained in:
parent
0ddfd5eb16
commit
1e79f35e43
@ -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), []]);
|
||||
|
@ -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), []]);
|
||||
|
Loading…
Reference in New Issue
Block a user