Repository navigation
Expand file tree
/
Copy pathmain.lua
More file actions
147 lines (139 loc) · 5.14 KB
/
Copy pathmain.lua
File metadata and controls
147 lines (139 loc) · 5.14 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
if not Chimes then
Chimes = {}
end
-- load all lib files first
local files = NFS.getDirectoryItemsInfo(SMODS.current_mod.path .. "/lib")
for i = 1, #files do
local file_name = files[i].name
if file_name:sub(-4) == ".lua" then
assert(SMODS.load_file("lib/" .. file_name))()
end
end
local files = {
booster = {
"items/booster/lenormand",
"items/booster/jumbo_lenormand",
"items/booster/mega_lenormand",
},
consumable = {
lenormand = {
"items/consumable/lenormand/rider",
"items/consumable/lenormand/clover",
"items/consumable/lenormand/ship",
"items/consumable/lenormand/house",
"items/consumable/lenormand/tree",
"items/consumable/lenormand/clouds",
"items/consumable/lenormand/snake",
"items/consumable/lenormand/coffin",
"items/consumable/lenormand/flowers",
"items/consumable/lenormand/scythe",
"items/consumable/lenormand/whip",
"items/consumable/lenormand/birds",
"items/consumable/lenormand/child",
"items/consumable/lenormand/fox",
"items/consumable/lenormand/bear",
"items/consumable/lenormand/stars",
"items/consumable/lenormand/stork",
"items/consumable/lenormand/dog",
"items/consumable/lenormand/tower",
"items/consumable/lenormand/garden",
"items/consumable/lenormand/mountain",
"items/consumable/lenormand/crossroads",
"items/consumable/lenormand/mice",
"items/consumable/lenormand/heart",
"items/consumable/lenormand/ring",
"items/consumable/lenormand/book",
"items/consumable/lenormand/letter",
"items/consumable/lenormand/man",
"items/consumable/lenormand/lady",
"items/consumable/lenormand/lily",
"items/consumable/lenormand/sun",
"items/consumable/lenormand/moon",
"items/consumable/lenormand/key",
"items/consumable/lenormand/fish",
"items/consumable/lenormand/anchor",
"items/consumable/lenormand/cross"
}
},
enhancement = {
"items/enhancement/doodle",
"items/enhancement/literature",
"items/enhancement/mechanical",
"items/enhancement/old",
"items/enhancement/ricochet",
"items/enhancement/rotten",
"items/enhancement/vine",
"items/enhancement/overgrown"
},
joker = {
common = {
"items/joker/common/bingo_card",
"items/joker/common/figure_1",
"items/joker/common/go_fish",
"items/joker/common/keychain",
"items/joker/common/makisu",
"items/joker/common/punk",
"items/joker/common/rotten",
"items/joker/common/salmon_nigiri",
"items/joker/common/tamago",
"items/joker/common/train_ticket"
},
uncommon = {
"items/joker/uncommon/alarm",
"items/joker/uncommon/batteries",
"items/joker/uncommon/brain",
"items/joker/uncommon/california_roll",
"items/joker/uncommon/chocolate_strawberry",
"items/joker/uncommon/colored_pencils",
"items/joker/uncommon/crayons",
"items/joker/uncommon/elites",
"items/joker/uncommon/fungi",
"items/joker/uncommon/garlic",
"items/joker/uncommon/ghost_costume",
"items/joker/uncommon/hand_roll",
"items/joker/uncommon/koi",
"items/joker/uncommon/monster_costume",
"items/joker/uncommon/motherboard",
"items/joker/uncommon/onigiri",
"items/joker/uncommon/paper",
"items/joker/uncommon/pumpkin_costume",
"items/joker/uncommon/rock",
"items/joker/uncommon/scissors",
"items/joker/uncommon/tobiko",
"items/joker/uncommon/toy_car",
"items/joker/uncommon/trickster",
"items/joker/uncommon/wallbang",
"items/joker/uncommon/watercolors",
"items/joker/uncommon/waterfall",
"items/joker/uncommon/wine",
"items/joker/uncommon/wonders"
},
rare = {
"items/joker/rare/bonsai",
"items/joker/rare/botton_pon",
"items/joker/rare/celosia",
"items/joker/rare/orchid",
"items/joker/rare/overgrown",
"items/joker/rare/tako_nigiri",
"items/joker/rare/togarashi",
}
}
}
for _, name in ipairs(files["booster"]) do
assert(SMODS.load_file(name .. ".lua"))()
end
for _, name in ipairs(files["consumable"].lenormand) do
assert(SMODS.load_file(name .. ".lua"))()
end
for _, name in ipairs(files["enhancement"]) do
assert(SMODS.load_file(name .. ".lua"))()
end
for _, name in ipairs(files["joker"].common) do
assert(SMODS.load_file(name .. ".lua"))()
end
for _, name in ipairs(files["joker"].uncommon) do
assert(SMODS.load_file(name .. ".lua"))()
end
for _, name in ipairs(files["joker"].rare) do
assert(SMODS.load_file(name .. ".lua"))()
end