Medical GUI - Change minimal value of damage threshold (#9538)

* change minimal value of damage threshold

* applying pabst suggestion

* remove space

* Update addons/medical_gui/functions/fnc_updateBodyImage.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
MiszczuZPolski 2023-10-20 01:25:05 +02:00 committed by GitHub
parent 6f001c72bd
commit 2fbc40b62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0];
_damageThreshold = _damageThreshold * 1.5
};
};
_damage = (_damage / _damageThreshold) min 1;
_damage = (_damage / (0.01 max _damageThreshold)) min 1;
[_damage] call FUNC(damageToRGBA);
};