mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
extra debug
This commit is contained in:
parent
a572570e83
commit
9242b01f3b
@ -21,6 +21,7 @@ private ["_allow","_itemType","_lootTableArray","_lootTableName","_return","_tot
|
|||||||
//[[[end]]]
|
//[[[end]]]
|
||||||
params ["_configName","_keyName","_arrayName"];
|
params ["_configName","_keyName","_arrayName"];
|
||||||
|
|
||||||
|
_debug = ["CfgEpochClient", "debug", false] call EPOCH_fnc_returnConfigEntryV2;
|
||||||
_lootTableName = format["EPOCH_LT_%1_%2_%3",_configName,_keyName,_arrayName];
|
_lootTableName = format["EPOCH_LT_%1_%2_%3",_configName,_keyName,_arrayName];
|
||||||
_return = missionNamespace getVariable[_lootTableName,[]];
|
_return = missionNamespace getVariable[_lootTableName,[]];
|
||||||
|
|
||||||
@ -33,7 +34,10 @@ if(_return isEqualTo[]) then {
|
|||||||
if(_x isEqualType []) then {
|
if(_x isEqualType []) then {
|
||||||
_x params ["_tname","_tqty",["_extraLogicRaw", [] ]];
|
_x params ["_tname","_tqty",["_extraLogicRaw", [] ]];
|
||||||
_tname params ["_item",["_itemType","NA"]];
|
_tname params ["_item",["_itemType","NA"]];
|
||||||
if (_configName isEqualTo "CfgMainTable") then {_itemType = "CfgLootTable"};
|
// if (_configName isEqualTo "CfgMainTable") then {_itemType = "CfgLootTable"};
|
||||||
|
if (_debug) then {
|
||||||
|
diag_log format["DEBUG: _tname: _item %1 _itemType: %2",_item,_itemType];
|
||||||
|
};
|
||||||
_allow = true;
|
_allow = true;
|
||||||
if !(_extraLogicRaw isEqualTo[]) then {
|
if !(_extraLogicRaw isEqualTo[]) then {
|
||||||
_extraLogicRaw params [["_extraLogicType",""],["_extraLogicName",""],["_extraLogicCond",""],["_extraLogicData",""]];
|
_extraLogicRaw params [["_extraLogicType",""],["_extraLogicName",""],["_extraLogicCond",""],["_extraLogicData",""]];
|
||||||
@ -68,9 +72,11 @@ if(_return isEqualTo[]) then {
|
|||||||
case "weapon": {
|
case "weapon": {
|
||||||
_allow = isClass (configFile >> "CfgWeapons" >> _item);
|
_allow = isClass (configFile >> "CfgWeapons" >> _item);
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
case "CfgLootTable": {
|
case "CfgLootTable": {
|
||||||
_allow = isClass (missionConfigFile >> "CfgLootTable" >> _item);
|
_allow = isClass (missionConfigFile >> "CfgLootTable" >> _item);
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
// add to loot table
|
// add to loot table
|
||||||
@ -96,7 +102,7 @@ if(_return isEqualTo[]) then {
|
|||||||
missionNamespace setVariable[_lootTableName,_return];
|
missionNamespace setVariable[_lootTableName,_return];
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
if (["CfgEpochClient", "debug", false] call EPOCH_fnc_returnConfigEntryV2) then {
|
if (_debug) then {
|
||||||
diag_log format["DEBUG: LootTable: %1 DATA: %2",_lootTableName,_return];
|
diag_log format["DEBUG: LootTable: %1 DATA: %2",_lootTableName,_return];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user