Added separate config parsing for basic and advanced

This commit is contained in:
Glowbal 2015-02-22 00:24:50 +01:00
parent 3f12af8b21
commit 73c91af533
2 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,10 @@ _target = _this select 1;
_selectionName = _this select 2; _selectionName = _this select 2;
_className = _this select 3; _className = _this select 3;
_config = (ConfigFile >> "ACE_Medical_Treatments" >> _className); _config = (ConfigFile >> "ACE_Medical_Treatments" >> "Basic" >> _className);
if (GVAR(level)>=1) then {
_config = (ConfigFile >> "ACE_Medical_Treatments" >> "Advanced" >> _className);
};
if !(isClass _config) exitwith {false}; if !(isClass _config) exitwith {false};
_availableLevels = getArray (_config >> "availableLevels"); _availableLevels = getArray (_config >> "availableLevels");

View File

@ -22,7 +22,10 @@ _target = _this select 1;
_selectionName = _this select 2; _selectionName = _this select 2;
_className = _this select 3; _className = _this select 3;
_config = (ConfigFile >> "ACE_Medical_Treatments" >> _className); _config = (ConfigFile >> "ACE_Medical_Treatments" >> "Basic" >> _className);
if (GVAR(level)>=1) then {
_config = (ConfigFile >> "ACE_Medical_Treatments" >> "Advanced" >> _className);
};
if !(isClass _config) exitwith {false}; if !(isClass _config) exitwith {false};
_availableLevels = getArray (_config >> "availableLevels"); _availableLevels = getArray (_config >> "availableLevels");