mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
535e285c2c
commit
5206b63d5a
@ -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), []]);
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user