fix inconsistencies in treatment time between basic and adv, fix item usage

This commit is contained in:
commy2 2016-09-29 19:43:50 +02:00
parent e418cc05e9
commit ef8ad21446
2 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class GVAR(Actions) {
category = "advanced";
treatmentLocations[] = {"All"};
requiredMedic = 0;
treatmentTime = 20;
treatmentTime = 15;
items[] = {"ACE_bodyBag"};
condition = "!alive _target";
callbackSuccess = QUOTE(DFUNC(actionPlaceInBodyBag));
@ -244,7 +244,7 @@ class GVAR(Actions) {
category = "advanced";
items[] = {"ACE_bloodIV"};
requiredMedic = 1;
treatmentTime = 7;
treatmentTime = 12;
callbackSuccess = QUOTE(DFUNC(treatmentIV));
animationCaller = "AinvPknlMstpSnonWnonDnon_medic1";
litter[] = {};

View File

@ -27,6 +27,9 @@ if !([_caller, _target, _selectionName, _className] call FUNC(canTreat)) exitWit
private _config = configFile >> QGVAR(Actions) >> CUR_LEVEL >> _className;
// handle items
private _items = getArray (_config >> "items");
private _consumeItems = 0;
if (isNumber (_config >> "itemConsumed")) then {