-
Notifications
You must be signed in to change notification settings - Fork 1
/
include.lua
109 lines (94 loc) · 2.04 KB
/
include.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
pg = pg or {}
ys = ys or {}
cs = cs or {}
function slot0(slot0)
return string.gsub(slot0 or "", "<%[(.-)%]>", function (slot0)
return pg.equip_data_code[slot0] and slot1.text
end)
end
function slot1(slot0, slot1)
return function (slot0, slot1)
slot2 = slot0.__name
if uv0 == 1 and cs[slot2][slot1] then
LuaHelper.SetConfVal(slot2, cs[slot2][slot1][1], cs[slot2][slot1][2])
end
if uv0 == 2 and cs[slot2].indexs[slot1] then
if pg.base[cs[slot2].subList[cs[slot2].indexs[slot1]]] == nil then
require("ShareCfg." .. cs[slot2].subFolderName .. "." .. slot3)
end
slot2 = slot3
end
if not pg.base[slot2][slot1] then
return nil
end
slot4 = {
[slot8] = uv1(slot9)
}
for slot8, slot9 in pairs(slot3) do
if type(slot9) == "string" then
if uv2 then
slot4[slot8] = HXSet.hxLan(slot4[slot8])
end
end
end
if rawget(slot3, "base") ~= nil then
slot0[slot1] = setmetatable(slot4, {
__index = function (slot0, slot1)
if uv0[slot1] == nil then
return uv1[uv2][slot1]
else
return uv0[slot1]
end
end
})
else
slot0[slot1] = setmetatable(slot4, {
__index = slot3
})
end
return slot0[slot1]
end
end
confSP = confSP or {
__index = slot1(2, true)
}
confMT = confMT or {
__index = slot1(1, true)
}
confHX = confHX or {
__index = slot1(0, true)
}
require("localConfig")
require("const")
require("config")
setmetatable(pg, {
__index = function (slot0, slot1)
if ShareCfg["ShareCfg." .. slot1] then
require(slot2)
return rawget(pg, slot1)
end
end
})
ERROR_MESSAGE = setmetatable({}, {
__index = function (slot0, slot1)
if pg.error_message[slot1] then
return pg.error_message[slot1].desc
else
return "none"
end
end
})
BVCurIndex = 1
BVLastIndex = 1
require("Support/Utils/HXSet")
require("Framework/Include")
require("Support/Include")
require("Net/Include")
require("Mgr/Include")
require("GameCfg/Include")
require("Mod/Battle/Include")
require("skillCfg")
require("buffCfg")
require("cardCfg")
require("genVertify")
require("buffFXPreloadList")