Files
2025-01-25 04:38:09 +08:00

326 lines
17 KiB
Lua

--文件是自动生成,请勿手动修改.来自数据文件:SoulArmor_equip_synthesis
local L_CompressMaxColumn = 3
local L_CompressData = {
399084106741496,343623252664650,89346636275975,
--7010040,7010050,1,211,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084123518713,343623252664651,89346636275975,
--7010041,7010051,1,212,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084140295930,343623252664652,89346636275975,
--7010042,7010052,1,213,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084157073147,343623252664653,89346636275975,
--7010043,7010053,1,214,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084173850364,171824560824654,89346636275975,
--7010044,7010054,1,215,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084190627581,171824560824655,89346636275975,
--7010045,7010055,1,216,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084207404798,171824560824656,89346636275975,
--7010046,7010056,1,217,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084224182015,171824560824657,89346636275975,
--7010047,7010057,1,218,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084240959232,343623252664658,89346636275975,
--7010048,7010058,1,219,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084257736449,343623252664659,89346636275975,
--7010049,7010059,1,220,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084274513666,343623252664650,89346636275975,
--7010050,7010060,1,211,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084291290883,343623252664651,89346636275975,
--7010051,7010061,1,212,9,6_7,5000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084308068100,171824560824652,89346636275975,
--7010052,7010062,1,213,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084324845317,171824560824653,89346636275975,
--7010053,7010063,1,214,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084341622534,171824560824654,89346636275975,
--7010054,7010064,1,215,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084358399751,171824560824655,89346636275975,
--7010055,7010065,1,216,9,6_7,2500,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084375176968,85925214904656,89346636275975,
--7010056,7010066,1,217,9,6_7,1250,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084391954185,85925214904657,89346636275975,
--7010057,7010067,1,218,9,6_7,1250,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084408731402,85925214904658,89346636275975,
--7010058,7010068,1,219,9,6_7,1250,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084425508619,85925214904659,89346636275975,
--7010059,7010069,1,220,9,6_7,1250,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084610058006,68745345720650,89346636275975,
--7010070,7010080,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084626835223,68745345720651,89346636275975,
--7010071,7010081,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084643612440,68745345720652,89346636275975,
--7010072,7010082,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084660389657,68745345720653,89346636275975,
--7010073,7010083,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084677166874,68745345720654,89346636275975,
--7010074,7010084,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084693944091,68745345720655,89346636275975,
--7010075,7010085,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084710721308,68745345720656,89346636275975,
--7010076,7010086,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084727498525,68745345720657,89346636275975,
--7010077,7010087,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084744275742,68745345720658,89346636275975,
--7010078,7010088,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084761052959,68745345720659,89346636275975,
--7010079,7010089,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084777830176,68745345720650,89346636275975,
--7010080,7010090,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084794607393,68745345720651,89346636275975,
--7010081,7010091,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084811384610,68745345720652,89346636275975,
--7010082,7010092,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084828161827,68745345720653,89346636275975,
--7010083,7010093,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084844939044,68745345720654,89346636275975,
--7010084,7010094,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084861716261,68745345720655,89346636275975,
--7010085,7010095,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084878493478,68745345720656,89346636275975,
--7010086,7010096,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084895270695,68745345720657,89346636275975,
--7010087,7010097,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084912047912,68745345720658,89346636275975,
--7010088,7010098,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084928825129,68745345720659,89346636275975,
--7010089,7010099,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084945602346,68745345720650,89346636275975,
--7010090,7010100,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084962379563,68745345720651,89346636275975,
--7010091,7010101,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084979156780,68745345720652,89346636275975,
--7010092,7010102,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399084995933997,68745345720653,89346636275975,
--7010093,7010103,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085012711214,68745345720654,89346636275975,
--7010094,7010104,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085029488431,68745345720655,89346636275975,
--7010095,7010105,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085046265648,68745345720656,89346636275975,
--7010096,7010106,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085063042865,68745345720657,89346636275975,
--7010097,7010107,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085079820082,68745345720658,89346636275975,
--7010098,7010108,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085096597299,68745345720659,89346636275975,
--7010099,7010109,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085113374516,68745345720650,89346636275975,
--7010100,7010110,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085130151733,68745345720651,89346636275975,
--7010101,7010111,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085146928950,68745345720652,89346636275975,
--7010102,7010112,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085163706167,68745345720653,89346636275975,
--7010103,7010113,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085180483384,68745345720654,89346636275975,
--7010104,7010114,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085197260601,68745345720655,89346636275975,
--7010105,7010115,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085214037818,68745345720656,89346636275975,
--7010106,7010116,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085230815035,68745345720657,89346636275975,
--7010107,7010117,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085247592252,68745345720658,89346636275975,
--7010108,7010118,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085264369469,68745345720659,89346636275975,
--7010109,7010119,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,,,,
399085281146686,68745345720650,6365012626250162439,
--7010110,7010120,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085297923903,68745345720651,6365012626250162439,
--7010111,7010121,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085314701120,68745345720652,6365012626250162439,
--7010112,7010122,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085331478337,68745345720653,6365012626250162439,
--7010113,7010123,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085348255554,68745345720654,6365012626250162439,
--7010114,7010124,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085365032771,68745345720655,6365012626250162439,
--7010115,7010125,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085381809988,68745345720656,6365012626250162439,
--7010116,7010126,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085398587205,68745345720657,6365012626250162439,
--7010117,7010127,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085415364422,68745345720658,6365012626250162439,
--7010118,7010128,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085432141639,68745345720659,6365012626250162439,
--7010119,7010129,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83095_1,1,,
399085448918856,68745345720650,6365082994994340103,
--7010120,7010130,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085465696073,68745345720651,6365082994994340103,
--7010121,7010131,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085482473290,68745345720652,6365082994994340103,
--7010122,7010132,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085499250507,68745345720653,6365082994994340103,
--7010123,7010133,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085516027724,68745345720654,6365082994994340103,
--7010124,7010134,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085532804941,68745345720655,6365082994994340103,
--7010125,7010135,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085549582158,68745345720656,6365082994994340103,
--7010126,7010136,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085566359375,68745345720657,6365082994994340103,
--7010127,7010137,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085583136592,68745345720658,6365082994994340103,
--7010128,7010138,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085599913809,68745345720659,6365082994994340103,
--7010129,7010139,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83096_1,1,,
399085616691026,68745345720650,6365153363738517767,
--7010130,7010140,1,211,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085633468243,68745345720651,6365153363738517767,
--7010131,7010141,1,212,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085650245460,68745345720652,6365153363738517767,
--7010132,7010142,1,213,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085667022677,68745345720653,6365153363738517767,
--7010133,7010143,1,214,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085683799894,68745345720654,6365153363738517767,
--7010134,7010144,1,215,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085700577111,68745345720655,6365153363738517767,
--7010135,7010145,1,216,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085717354328,68745345720656,6365153363738517767,
--7010136,7010146,1,217,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085734131545,68745345720657,6365153363738517767,
--7010137,7010147,1,218,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085750908762,68745345720658,6365153363738517767,
--7010138,7010148,1,219,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
399085767685979,68745345720659,6365153363738517767,
--7010139,7010149,1,220,9,6_7,1000,10000_15000,1_2_3_4_5,10000_20000_60000_60000_60000,83097_1,1,,
}
local L_MainKeyDic = {
[7010040]=1,[7010041]=2,[7010042]=3,[7010043]=4,[7010044]=5,[7010045]=6,[7010046]=7,[7010047]=8,[7010048]=9,[7010049]=10,[7010050]=11,[7010051]=12,[7010052]=13,[7010053]=14,[7010054]=15,
[7010055]=16,[7010056]=17,[7010057]=18,[7010058]=19,[7010059]=20,[7010070]=21,[7010071]=22,[7010072]=23,[7010073]=24,[7010074]=25,[7010075]=26,[7010076]=27,[7010077]=28,[7010078]=29,[7010079]=30,
[7010080]=31,[7010081]=32,[7010082]=33,[7010083]=34,[7010084]=35,[7010085]=36,[7010086]=37,[7010087]=38,[7010088]=39,[7010089]=40,[7010090]=41,[7010091]=42,[7010092]=43,[7010093]=44,[7010094]=45,
[7010095]=46,[7010096]=47,[7010097]=48,[7010098]=49,[7010099]=50,[7010100]=51,[7010101]=52,[7010102]=53,[7010103]=54,[7010104]=55,[7010105]=56,[7010106]=57,[7010107]=58,[7010108]=59,[7010109]=60,
[7010110]=61,[7010111]=62,[7010112]=63,[7010113]=64,[7010114]=65,[7010115]=66,[7010116]=67,[7010117]=68,[7010118]=69,[7010119]=70,[7010120]=71,[7010121]=72,[7010122]=73,[7010123]=74,[7010124]=75,
[7010125]=76,[7010126]=77,[7010127]=78,[7010128]=79,[7010129]=80,[7010130]=81,[7010131]=82,[7010132]=83,[7010133]=84,[7010134]=85,[7010135]=86,[7010136]=87,[7010137]=88,[7010138]=89,[7010139]=90,
}
local L_NamesByNum = {
Id = 1,
EquipID = 2,
SynthesisLevel = 3,
Professional = 5,
JoinNumProbability = 7,
Notice = 12,
}
local L_NamesByString = {
JoinPart = 4,
Quality = 6,
QualityNumber = 8,
Diamond = 9,
DiamondNumber = 10,
JoinItem = 11,
}
local L_ColNameIndexs = {
Id = 0,
EquipID = 1,
SynthesisLevel = 2,
JoinPart = 3,
Professional = 4,
Quality = 5,
JoinNumProbability = 6,
QualityNumber = 7,
Diamond = 8,
DiamondNumber = 9,
JoinItem = 10,
Notice = 11,
}
--local L_ColumnUseBitCount = {24,24,2,16,5,15,14,16,15,15,16,2,}
--local L_ColumnList = {1,1,1,2,2,2,2,3,3,3,3,3,}
--local L_ShiftDataList = {0,24,48,0,16,21,36,0,16,31,46,62,}
--local L_AndDataList = {8388607,8388607,1,32767,15,16383,8191,32767,16383,16383,32767,1,}
local L_ColumnShiftAndList = {1,0,8388607,1,24,8388607,1,48,1,2,0,32767,2,16,15,2,21,16383,2,36,8191,3,0,32767,3,16,16383,3,31,16383,3,46,32767,3,62,1,}
local L_ColNum = 12;
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 = 90
}
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