Files
Main/Assets/GameAssets/Resources/Lua/Config/Data/DataSoulBeastsEquip.lua
2025-01-25 04:38:09 +08:00

263 lines
12 KiB
Lua

--文件是自动生成,请勿手动修改.来自数据文件:SoulBeastsEquip
local L_CompressMaxColumn = 3
local L_CompressData = {
13833510245487225,1099522819223,17593528222720,
--3003001,0,3,1,0,1_40;2_968,3_250,1,1,,1,,,,,10,,,,
13834064296268410,1099522819223,17593528222720,
--3003002,0,3,2,0,1_43;3_30,3_250,1,1,,1,,,,,10,,,,
13834343469142651,1099522819223,17593528222720,
--3003003,0,3,3,0,2_1291;3_30,3_250,1,1,,1,,,,,10,,,,
13834622642016892,1099522819223,17593528222720,
--3003004,0,3,4,0,1_36;4_28,3_250,1,1,,1,,,,,10,,,,
13834901814891133,1099522819223,17593528222720,
--3003005,0,3,5,0,2_968;4_31,3_250,1,1,,1,,,,,10,,,,
13835159647147617,1099522819223,17594199311360,
--3004001,0,4,1,0,1_61;2_1452,3_250,1,1,,1,,,,,15,,,,
13835438820021858,1099522819223,17594199311360,
--3004002,0,4,2,0,1_64;3_45,3_250,1,1,,1,,,,,15,,,,
13835717992896099,1099522819223,17594199311360,
--3004003,0,4,3,0,2_1936;3_45,3_250,1,1,,1,,,,,15,,,,
13835997165770340,1099522819223,17594199311360,
--3004004,0,4,4,0,1_54;4_42,3_250,1,1,,1,,,,,15,,,,
13836276338644581,1099522819223,17594199311360,
--3004005,0,4,5,0,2_1452;4_47,3_250,1,1,,1,,,,,15,,,,
13836534305119793,1099522819223,17595138835456,
--3006001,0,6,1,0,1_91;2_2178,3_250,1,1,,1,,,,,22,,,,
13836813477994034,1099522819223,17595138835456,
--3006002,0,6,2,0,1_96;3_67,3_250,1,1,,1,,,,,22,,,,
13837092650868275,1099522819223,17595138835456,
--3006003,0,6,3,0,2_2905;3_67,3_250,1,1,,1,,,,,22,,,,
13837371823742516,1099522819223,17595138835456,
--3006004,0,6,4,0,1_82;4_64,3_250,1,1,,1,,,,,22,,,,
13837650996616757,1099522819223,17595138835456,
--3006005,0,6,5,0,2_2178;4_71,3_250,1,1,,1,,,,,22,,,,
13837908837261949,1521820026007,17598277394932,
--3007101,1,7,1,0,1_183;2_4357,3_250,1,1,,0,3007201_3007202_3007203_3007204_3007205,,500,3007301_3007302_3007303_3007304_3007305,45,,,,
13838737765950078,1521820026007,17598277394932,
--3007102,1,7,2,0,1_193;3_135,3_250,1,1,,0,3007201_3007202_3007203_3007204_3007205,,500,3007301_3007302_3007303_3007304_3007305,45,,,,
13839016938824319,1521820026007,17598277394932,
--3007103,1,7,3,0,2_5810;3_135,3_250,1,1,,0,3007201_3007202_3007203_3007204_3007205,,500,3007301_3007302_3007303_3007304_3007305,45,,,,
13839296111698560,1521820026007,17598277394932,
--3007104,1,7,4,0,1_164;4_128,3_250,1,1,,0,3007201_3007202_3007203_3007204_3007205,,500,3007301_3007302_3007303_3007304_3007305,45,,,,
13839575284572801,1521820026007,17598277394932,
--3007105,1,7,5,0,2_4357;4_142,3_250,1,1,,0,3007201_3007202_3007203_3007204_3007205,,500,3007301_3007302_3007303_3007304_3007305,45,,,,
13839832990999265,1521828414615,17601230190792,
--3007201,2,7,1,0,1_275;2_6536,3_250,1,1,,0,3007301_3007302_3007303_3007304_3007305,,200,3007401_3007402_3007403_3007404_3007405,67,,,,
13840387041780450,1521828414615,17601230190792,
--3007202,2,7,2,0,1_290;3_203,3_250,1,1,,0,3007301_3007302_3007303_3007304_3007305,,200,3007401_3007402_3007403_3007404_3007405,67,,,,
13840666214654691,1521828414615,17601230190792,
--3007203,2,7,3,0,2_8715;3_203,3_250,1,1,,0,3007301_3007302_3007303_3007304_3007305,,200,3007401_3007402_3007403_3007404_3007405,67,,,,
13840945387528932,1521828414615,17601230190792,
--3007204,2,7,4,0,1_246;4_192,3_250,1,1,,0,3007301_3007302_3007303_3007304_3007305,,200,3007401_3007402_3007403_3007404_3007405,67,,,,
13841224560403173,1521828414615,17601230190792,
--3007205,2,7,5,0,2_6536;4_214,3_250,1,1,,0,3007301_3007302_3007303_3007304_3007305,,200,3007401_3007402_3007403_3007404_3007405,67,,,,
13841482266829637,1521878746263,557484294727192676,
--3007301,3,7,1,0,1_413;2_9804,3_250,1,1,,0,3007401_3007402_3007403_3007404_3007405,,100,3007501_3007502_3007503_3007504_3007505,101,10,14,,
13842036317610822,1521878746263,557484294727192676,
--3007302,3,7,2,0,1_435;3_304,3_250,1,1,,0,3007401_3007402_3007403_3007404_3007405,,100,3007501_3007502_3007503_3007504_3007505,101,10,14,,
13842315490485063,1521878746263,557484294727192676,
--3007303,3,7,3,0,2_13073;3_304,3_250,1,1,,0,3007401_3007402_3007403_3007404_3007405,,100,3007501_3007502_3007503_3007504_3007505,101,10,14,,
13842594663359304,1521878746263,557484294727192676,
--3007304,3,7,4,0,1_370;4_288,3_250,1,1,,0,3007401_3007402_3007403_3007404_3007405,,100,3007501_3007502_3007503_3007504_3007505,101,10,14,,
13842873836233545,1521878746263,557484294727192676,
--3007305,3,7,5,0,2_9804;4_321,3_250,1,1,,0,3007401_3007402_3007403_3007404_3007405,,100,3007501_3007502_3007503_3007504_3007505,101,10,14,,
13843131542660009,1521929077911,17612452922368,
--3007401,4,7,1,0,1_620;2_14707,3_250,1,1,,0,3007501_3007502_3007503_3007504_3007505,,,,151,,,,
13843410715534250,1521929077911,17612452922368,
--3007402,4,7,2,0,1_653;3_457,3_250,1,1,,0,3007501_3007502_3007503_3007504_3007505,,,,151,,,,
13843689888408491,1521929077911,17612452922368,
--3007403,4,7,3,0,2_19609;3_457,3_250,1,1,,0,3007501_3007502_3007503_3007504_3007505,,,,151,,,,
13843969061282732,1521929077911,17612452922368,
--3007404,4,7,4,0,1_555;4_433,3_250,1,1,,0,3007501_3007502_3007503_3007504_3007505,,,,151,,,,
13844248234156973,1521929077911,17612452922368,
--3007405,4,7,5,0,2_14707;4_481,3_250,1,1,,0,3007501_3007502_3007503_3007504_3007505,,,,151,,,,
13844505940583437,55380624177546391,557484311587062784,
--3007501,5,7,1,0,1_931;2_22060,3_250,1,1,,0,3008501_3008502_3008503_3008504_3008505,60052_1,,,227,10,14,,
13845334869271566,55380624177546391,557484311587062784,
--3007502,5,7,2,0,1_980;3_686,3_250,1,1,,0,3008501_3008502_3008503_3008504_3008505,60052_1,,,227,10,14,,
13845614042145807,55380624177546391,557484311587062784,
--3007503,5,7,3,0,2_29414;3_686,3_250,1,1,,0,3008501_3008502_3008503_3008504_3008505,60052_1,,,227,10,14,,
13845893215020048,55380624177546391,557484311587062784,
--3007504,5,7,4,0,1_833;4_650,3_250,1,1,,0,3008501_3008502_3008503_3008504_3008505,60052_1,,,227,10,14,,
13846172387894289,55380624177546391,557484311587062784,
--3007505,5,7,5,0,2_22060;4_722,3_250,1,1,,0,3008501_3008502_3008503_3008504_3008505,60052_1,,,227,10,14,,
13846430220150773,55388320817661079,557484342188704768,
--3008501,5,8,1,0,1_2328;2_55152,3_250,1,1,,0,3009501_3009502_3009503_3009504_3009505,60074_1,,,455,10,14,,
13847259148838902,55388320817661079,557484342188704768,
--3008502,5,8,2,0,1_2450;3_1715,3_250,1,1,,0,3009501_3009502_3009503_3009504_3009505,60074_1,,,455,10,14,,
13847538321713143,55388320817661079,557484342188704768,
--3008503,5,8,3,0,2_73536;3_1715,3_250,1,1,,0,3009501_3009502_3009503_3009504_3009505,60074_1,,,455,10,14,,
13847817494587384,55388320817661079,557484342188704768,
--3008504,5,8,4,0,1_2083;4_1625,3_250,1,1,,0,3009501_3009502_3009503_3009504_3009505,60074_1,,,455,10,14,,
13848096667461625,55388320817661079,557484342188704768,
--3008505,5,8,5,0,2_55152;4_1805,3_250,1,1,,0,3009501_3009502_3009503_3009504_3009505,60074_1,,,455,10,14,,
13848354499718109,55396017459872919,557484403391988736,
--3009501,5,9,1,0,1_5820;2_137881,3_250,1,1,,1,3010501_3010502_3010503_3010504_3010505,60075_1,,,911,10,14,,
13849183428406238,55396017459872919,557484403391988736,
--3009502,5,9,2,0,1_6127;3_4288,3_250,1,1,,1,3010501_3010502_3010503_3010504_3010505,60075_1,,,911,10,14,,
13849462601280479,55396017459872919,557484403391988736,
--3009503,5,9,3,0,2_183841;3_4288,3_250,1,1,,1,3010501_3010502_3010503_3010504_3010505,60075_1,,,911,10,14,,
13849741774154720,55396017459872919,557484403391988736,
--3009504,5,9,4,0,1_5207;4_4063,3_250,1,1,,1,3010501_3010502_3010503_3010504_3010505,60075_1,,,911,10,14,,
13850020947028961,55396017459872919,557484403391988736,
--3009505,5,9,5,0,2_137881;4_4514,3_250,1,1,,1,3010501_3010502_3010503_3010504_3010505,60075_1,,,911,10,14,,
13850278779285445,1099522819223,557484525664338944,
--3010501,5,10,1,0,1_14551;2_344703,3_250,1,1,,1,,,,,1822,10,14,,
13850557952159686,1099522819223,557484525664338944,
--3010502,5,10,2,0,1_15317;3_10722,3_250,1,1,,1,,,,,1822,10,14,,
13850837125033927,1099522819223,557484525664338944,
--3010503,5,10,3,0,2_459604;3_10722,3_250,1,1,,1,,,,,1822,10,14,,
13851116297908168,1099522819223,557484525664338944,
--3010504,5,10,4,0,1_13019;4_10157,3_250,1,1,,1,,,,,1822,10,14,,
13851395470782409,1099522819223,557484525664338944,
--3010505,5,10,5,0,2_344703;4_11286,3_250,1,1,,1,,,,,1822,10,14,,
}
local L_MainKeyDic = {
[3003001]=1,[3003002]=2,[3003003]=3,[3003004]=4,[3003005]=5,[3004001]=6,[3004002]=7,[3004003]=8,[3004004]=9,[3004005]=10,[3006001]=11,[3006002]=12,[3006003]=13,[3006004]=14,[3006005]=15,
[3007101]=16,[3007102]=17,[3007103]=18,[3007104]=19,[3007105]=20,[3007201]=21,[3007202]=22,[3007203]=23,[3007204]=24,[3007205]=25,[3007301]=26,[3007302]=27,[3007303]=28,[3007304]=29,[3007305]=30,
[3007401]=31,[3007402]=32,[3007403]=33,[3007404]=34,[3007405]=35,[3007501]=36,[3007502]=37,[3007503]=38,[3007504]=39,[3007505]=40,[3008501]=41,[3008502]=42,[3008503]=43,[3008504]=44,[3008505]=45,
[3009501]=46,[3009502]=47,[3009503]=48,[3009504]=49,[3009505]=50,[3010501]=51,[3010502]=52,[3010503]=53,[3010504]=54,[3010505]=55,}
local L_NamesByNum = {
Id = 1,
DiamondNumber = 2,
Quality = 3,
Part = 4,
Bind = 5,
Confirm = 8,
IfBan = 10,
Bigsuccess = 13,
SealExp = 15,
Notice = 16,
}
local L_NamesByString = {
Attribute1 = 6,
SealNum = 7,
RecommendedTips = 9,
TargetEquip = 11,
DemandItem = 12,
BigsuccessTargetEquip = 14,
Chatchannel = 17,
}
local L_ColNameIndexs = {
Id = 0,
DiamondNumber = 1,
Quality = 2,
Part = 3,
Bind = 4,
Attribute1 = 5,
SealNum = 6,
Confirm = 7,
RecommendedTips = 8,
IfBan = 9,
TargetEquip = 10,
DemandItem = 11,
Bigsuccess = 12,
BigsuccessTargetEquip = 13,
SealExp = 14,
Notice = 15,
Chatchannel = 16,
}
--local L_ColumnUseBitCount = {23,4,5,4,2,17,17,2,2,2,17,17,10,17,12,5,16,}
--local L_ColumnList = {1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,}
--local L_ShiftDataList = {0,23,27,32,36,38,0,17,19,21,23,40,0,10,27,39,44,}
--local L_AndDataList = {4194303,7,15,7,1,65535,65535,1,1,1,65535,65535,511,65535,2047,15,32767,}
local L_ColumnShiftAndList = {1,0,4194303,1,23,7,1,27,15,1,32,7,1,36,1,1,38,65535,2,0,65535,2,17,1,2,19,1,2,21,1,2,23,65535,2,40,65535,3,0,511,3,10,65535,3,27,2047,3,39,15,3,44,32767,}
local L_ColNum = 17;
local L_UseDataK = setmetatable({ },{ __mode = 'k'});
local L_UseDataV = setmetatable({ },{ __mode = 'v'});
local L_UseDataRow = setmetatable({ },{ __mode = 'v'});
local L_IsCache = false;
local mt = {}
local function GetData(row, column)
local startIndex = (column - 1) * 3
local _compressData = L_CompressData[(row - 1)*L_CompressMaxColumn+L_ColumnShiftAndList[startIndex + 1]]
local _tempData = _compressData >> L_ColumnShiftAndList[startIndex + 2]
local _data = _tempData & L_ColumnShiftAndList[startIndex + 3]
local _andSign = L_ColumnShiftAndList[startIndex + 3] + 1
local _isMinus = (_andSign & _tempData) == _andSign
return _isMinus and -_data or _data;
end
mt.__index = function (t,key)
local _key = L_UseDataK[t];
local _row = L_MainKeyDic[_key];
local _column = L_NamesByNum[key];
if _column ~= nil then
if L_IsCache then
local _data = L_UseDataRow[_row * L_ColNum + _column]
if not _data then
_data = GetData(_row, _column)
L_UseDataRow[_row * L_ColNum + _column] = _data
end
return _data
else
return GetData(_row, _column)
end
end
_column = L_NamesByString[key]
if _column ~= nil then
return StringDefines[GetData(_row, _column)]
end
if string.find(key, '_') then
local _newKey = string.gsub(key, '_', '')
_column = L_NamesByString[_newKey]
if _column ~= nil then
return GetData(_row, _column)
end
end
if key ~= '_OnCopyAfter_' then
return
end
end
local M = {
_CompressData_ = L_CompressData,
_ColumnShiftAndList_ = L_ColumnShiftAndList,
_CompressMaxColumn_ = L_CompressMaxColumn,
_ColumnNameIndexs_ = L_ColNameIndexs,
Count = 55
}
function M:Foreach(func)
for i=1,M.Count do
local _key = GetData(i, 1)
func(_key, M[_key])
end
end
function M:ForeachCanBreak(func)
for i = 1,M.Count do
local _key = GetData(i, 1)
if func(_key, M[_key]) then
break
end
end
end
function M:GetByIndex(index)
return M[GetData(index, 1)];
end
function M:IsContainKey(key)
return not(not L_MainKeyDic[key]);
end
function M:SetIsCache(isCh)
L_IsCache = isCh;
end
setmetatable(M, {__index = function(t, key)
if not L_MainKeyDic[key] then
return;
end
local _t = L_UseDataV[key];
if not _t then
_t = setmetatable({}, mt);
L_UseDataV[key] = _t;
L_UseDataK[_t] = key;
end
return _t
end})
return M