Formula
CommonFun.CalcExpRaidBaseExp
function CommonFun.CalcExpRaidBaseExp(lv, maxlv, killNum, monthcard)
local baseparam = {
[20] = 598752,
[21] = 603029,
[22] = 607306,
[23] = 630115,
[24] = 647222,
[25] = 755568,
[26] = 760320,
[27] = 765072,
[28] = 769824,
[29] = 784080,
[30] = 787644,
[31] = 791208,
[32] = 798336,
[33] = 946598,
[34] = 979387,
[35] = 1012176,
[36] = 1077754,
[37] = 1087020,
[38] = 1096286,
[39] = 1114819,
[40] = 1123373,
[41] = 1638252,
[42] = 1683990,
[43] = 1729728,
[44] = 1821204,
[45] = 2378376,
[46] = 2380307,
[47] = 2382237,
[48] = 2384168,
[49] = 2386098,
[50] = 2388029,
[51] = 2389959,
[52] = 2391890,
[53] = 2393820,
[54] = 2395751,
[55] = 2397681,
[56] = 2399612,
[57] = 2401542,
[58] = 2403473,
[59] = 2405403,
[60] = 2432430,
[61] = 2448112,
[62] = 2463793,
[63] = 2476683,
[64] = 2489573,
[65] = 2502463,
[66] = 2515352,
[67] = 2528242,
[68] = 2541132,
[69] = 2554022,
[70] = 2566912,
[71] = 2579801,
[72] = 2695810,
[73] = 2761090,
[74] = 2826371,
[75] = 2891651,
[76] = 2956932,
[77] = 3022213,
[78] = 3087493,
[79] = 3152774,
[80] = 3218054,
[81] = 3740299,
[82] = 3947724,
[83] = 4155149,
[84] = 4362574,
[85] = 4569998,
[86] = 4777423,
[87] = 4984848,
[88] = 5192273,
[89] = 5399698,
[90] = 5607122,
[91] = 7473946,
[92] = 7591003,
[93] = 7708061,
[94] = 7825118,
[95] = 7942176,
[96] = 8059234,
[97] = 8176291,
[98] = 8293349,
[99] = 8410406,
[100] = 8527464,
[101] = 9580982,
[102] = 9660288,
[103] = 9739594,
[104] = 9818899,
[105] = 9898205,
[106] = 9977510,
[107] = 10056816,
[108] = 10136122,
[109] = 10215427,
[110] = 10294733,
[111] = 11008483,
[112] = 11063567,
[113] = 11118652,
[114] = 11173736,
[115] = 11228820,
[116] = 11283905,
[117] = 11338989,
[118] = 11394073,
[119] = 11449157,
[120] = 11504242
}
local calclv = lv
if maxlv < calclv then
calclv = maxlv
end
if calclv < 20 then
return 0
end
local monthpara = 1
if monthcard == true then
monthpara = 1.33
end
local stagepara = 1
if killNum < 210 then
stagepara = 1.2
end
if killNum < 240 and 210 <= killNum then
stagepara = 1.35
end
if killNum < 270 and 240 <= killNum then
stagepara = 1.5
end
if killNum < 300 and 270 <= killNum then
stagepara = 1.65
end
if killNum == 300 then
stagepara = 1.8
end
local zhuigan = 1
if lv < 80 then
zhuigan = 3
end
local baseexp = baseparam[calclv] * monthpara * stagepara * zhuigan
if baseexp < 0 then
return 0
end
return baseexp
end