PAK treatment time based on total amount of damage.

This commit is contained in:
ulteq 2015-06-11 22:54:08 +02:00
parent d8877d0dbd
commit 99b13a584a

View File

@ -219,7 +219,7 @@ class ACE_Medical_Actions {
items[] = {"ACE_personalAidKit"};
treatmentLocations[] = {QGVAR(useLocation_PAK)};
requiredMedic = QGVAR(medicSetting_PAK);
treatmentTime = 10;
treatmentTime = "10 max (call {_sum = 0; { _sum = _sum + _x; } forEach ((_this select 1) getVariable ['ACE_Medical_bodyPartStatus', []]); _sum * 10}) min 120";
callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_fullHeal));
itemConsumed = QGVAR(consumeItem_PAK);
animationPatient = "";