Fix medical interaction menu bleeding colours

This makes the bloodloss calculation used for the interaction menu icons
match the calculation used for the body image.
This commit is contained in:
SilentSpike 2018-04-20 12:28:18 +01:00
parent 535e285c2c
commit 5206b63d5a
2 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ private _bloodLossOnBodyPart = 0;
// Add all bleeding from wounds on selection
{
_x params ["", "", "_bodyPartN", "_amountOf", "_percentageOpen"];
_x params ["", "", "_bodyPartN", "_amountOf", "_bleeding"];
if (_bodyPartN == _partIndex) then {
_bloodLossOnBodyPart = _bloodLossOnBodyPart + (_amountOf * _percentageOpen);
_bloodLossOnBodyPart = _bloodLossOnBodyPart + (20 * _amountOf * _bleeding);
};
} forEach (_target getvariable [QEGVAR(medical,openWounds), []]);

View File

@ -72,7 +72,7 @@ private _allInjuryTexts = [];
{
_x params ["", "_woundClassID", "_bodyPartN", "_amountOf", "_bleeding", "_damage", "_category"];
_selectionBloodLoss set [_bodyPartN, (_selectionBloodLoss select _bodyPartN) + (20 * (_bleeding * _amountOf))];
_selectionBloodLoss set [_bodyPartN, (_selectionBloodLoss select _bodyPartN) + (20 * _bleeding * _amountOf)];
if (_selectionN == _bodyPartN) then {
// Collect the text to be displayed for this injury [ Select injury class type definition - select the classname DisplayName (6th), amount of injuries for this]
if (_amountOf > 0) then {