Minor tweaks to medical

- decrease needed blood loss on selection to turn icon red. (Largest
wound bleedingRate is only 0.1)
- Don't print warning for basic medical bandage not having sub configs
This commit is contained in:
PabstMirror 2016-08-03 13:14:12 -05:00
parent be3afe6eb3
commit 82cf18575c
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ private _bloodLossOnSelection = 0;
};
} forEach (_target getvariable [QGVAR(openWounds), []]);
if (_bloodLossOnSelection >=1 ) then {
if (_bloodLossOnSelection >= 0.15) then {
_actionData set [2, QPATHTOF(UI\icons\medical_crossRed.paa)];
} else {
if (_bloodLossOnSelection > 0 ) then {

View File

@ -57,7 +57,10 @@ private _exit = false;
_woundEffectiveness = getNumber (_woundTreatmentConfig >> "effectiveness");
};
} else {
ACE_LOGWARNING_2("No config for wound type [%1] config base [%2]", _className, _config);
//Basic medical bandage just has a base level config (same effectivenes for all wound types)
if (_bandage != "Bandage") then {
ACE_LOGWARNING_2("No config for wound type [%1] config base [%2]", _className, _config);
};
};
TRACE_2("Wound classes: ", _specificClass, _classID);