Merge pull request #4202 from acemod/medicalTweaks

Minor tweaks to medical
This commit is contained in:
Glowbal 2016-08-03 20:37:38 +02:00 committed by GitHub
commit 0a56ab1fc4
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -57,7 +57,10 @@ private _exit = false;
_woundEffectiveness = getNumber (_woundTreatmentConfig >> "effectiveness"); _woundEffectiveness = getNumber (_woundTreatmentConfig >> "effectiveness");
}; };
} else { } 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); TRACE_2("Wound classes: ", _specificClass, _classID);