mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
Consolidate ItemKeyXXX/Colors to arrays.
Tidies up scripts inside epoch and for script creators. Moved z_at_buyItems to epoch_generateKey.
This commit is contained in:
@@ -7,7 +7,7 @@ _containerFindKey = {
|
||||
_keys = [];
|
||||
_weapTypes = (_this select 1) select 0;
|
||||
{
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]) then {
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in DZE_itemKeys) then {
|
||||
if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == (_this select 0)) then {
|
||||
_keys set [count _keys, _x];
|
||||
};
|
||||
@@ -21,7 +21,7 @@ if ((count _VehKey2) > 0) then {
|
||||
_localResult2 = 1;
|
||||
} else {
|
||||
{
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]) then {
|
||||
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in DZE_itemKeys) then {
|
||||
if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == (_VehKey2 select 0)) then {
|
||||
_localResult2 = [player,_x,1] call BIS_fnc_invRemove;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user