-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSculio.lua
More file actions
51 lines (42 loc) · 1.16 KB
/
Sculio.lua
File metadata and controls
51 lines (42 loc) · 1.16 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
Sculio = SMODS.current_mod
SMODS.Atlas {
-- Key for code to find it with
key = 'Sculio',
-- The name of the file, for the code to pull the atlas from
path = 'Sculio.png', -- Original file sourced from https://github.com/Steamodded/examples/tree/master/Mods/ExampleJokersMod/assets
-- Width of each sprite in 1x size
px = 71,
-- Height of each sprite in 1x size
py = 95
}
SMODS.Atlas {
key = 'Sculio_Tags',
path = 'Tags.png',
px = 34,
py = 34
}
SMODS.Atlas {
key = 'modicon',
path = 'Tags.png',
px = 34,
py = 34
}
SMODS.current_mod.optional_features = function()
return {
post_trigger = true
}
end
-- Talisman compat
to_big = to_big or function(...) return ... end
-- Load Jokers: https://github.com/neatoqueen/NeatoJokers/blob/main/NeatoJokers.lua#L32
local subdir = 'jokers'
local cards = NFS.getDirectoryItems(SMODS.current_mod.path .. subdir)
table.sort(cards, function(a, b)
local a_num = tonumber(a:match('^(%d+)_')) or 0
local b_num = tonumber(b:match('^(%d+)_')) or 0
return a_num < b_num
end)
for _, filename in ipairs(cards) do
assert(SMODS.load_file(subdir .. '/' .. filename))()
end
assert(SMODS.load_file('shuffle.lua'))()