Repository navigation
Expand file tree
/
Copy pathmain.lua
More file actions
95 lines (80 loc) · 3.89 KB
/
Copy pathmain.lua
File metadata and controls
95 lines (80 loc) · 3.89 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
--- STEAMODDED HEADER
--- MOD_NAME: Joker Evolution
--- MOD_ID: joker_evolution
--- MOD_AUTHOR: [SDM_0]
--- MOD_DESCRIPTION: Gives a few jokers strong evolutions! Consumable art by RattlingSnow353
--- PRIORITY: -1000
--- BADGE_COLOUR: 18cadc
--- DISPLAY_NAME: Joker Evolution
--- PREFIX: evo
--- VERSION: 1.2.3d
--- DEPENDENCIES: [Steamodded>=1.0.0~ALPHA-1030f]
----------------------------------------------
------------MOD CODE -------------------------
JokerEvolution_Mod = SMODS.current_mod
JokerEvolution_Config = JokerEvolution_Mod.config
JokerEvolution = {}
JokerEvolution.evolutions = {}
SMODS.Rarity{
key = "evo",
prefix_config = {key = false},
badge_colour = G.C.GOLD,
pools = {["Joker"] = true},
get_weight = function(self, weight, object_type)
return weight
end,
}
SMODS.load_file("overrides.lua")()
SMODS.load_file("functions.lua")()
if JokerEvolution_Config.enable_jokers then
SMODS.load_file("data/example_joker.lua")()
SMODS.load_file("data/jokers.lua")()
if JokerDisplay then
SMODS.load_file("jokerdisplay_definitions.lua")()
end
end
if JokerEvolution_Config.enable_consus then
SMODS.load_file("data/consumables.lua")()
end
JokerEvolution_Mod.config_tab = function()
return {n = G.UIT.ROOT, config = {align = "m", r = 0.1, padding = 0.1, colour = G.C.BLACK, minw = 8, minh = 6}, nodes = {
{n = G.UIT.R, config = {align = "cl", padding = 0, minh = 0.1}, nodes = {}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
create_toggle{ col = true, label = "", scale = 1, w = 0, shadow = true, ref_table = JokerEvolution_Config, ref_value = "enable_jokers" },
}},
{n = G.UIT.C, config = { align = "c", padding = 0 }, nodes = {
{ n = G.UIT.T, config = { text = "Enable Original Evolutions", scale = 0.42, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
create_toggle{ col = true, label = "", scale = 1, w = 0, shadow = true, ref_table = JokerEvolution_Config, ref_value = "enable_consus" },
}},
{n = G.UIT.C, config = { align = "c", padding = 0 }, nodes = {
{ n = G.UIT.T, config = { text = "Enable Consumables", scale = 0.42, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
create_toggle{ col = true, label = "", scale = 1, w = 0, shadow = true, ref_table = JokerEvolution_Config, ref_value = "enable_mod_jokers" },
}},
{n = G.UIT.C, config = { align = "c", padding = 0 }, nodes = {
{ n = G.UIT.T, config = { text = "Enable Extra Jokers (ex: Collector Joker)", scale = 0.42, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
create_toggle{ col = true, label = "", scale = 1, w = 0, shadow = true, ref_table = JokerEvolution_Config, ref_value = "enable_pool_restriction" },
}},
{n = G.UIT.C, config = { align = "c", padding = 0 }, nodes = {
{ n = G.UIT.T, config = { text = "Enable poll restriction", scale = 0.42, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cm", padding = 0.5}, nodes = {
{n = G.UIT.T, config = {text = "(Must restart to apply changes)", scale = 0.40, colour = G.C.UI.TEXT_LIGHT}},
}},
}}
end
----------------------------------------------
------------MOD CODE END----------------------