-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathEntropy.lua
More file actions
158 lines (139 loc) · 4.5 KB
/
Entropy.lua
File metadata and controls
158 lines (139 loc) · 4.5 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
148
149
150
151
152
153
154
155
156
157
158
local mod_path = "" .. SMODS.current_mod.path
Entropy.path = mod_path
assert(Spectrallib, "Please make sure Spectrallib is installed instead of Cryptlib\nhttps://github.com/SpectralPack/Spectrallib/")
assert(SMODS.load_file("lib/utils.lua"))()
local i = {
"lib/colours",
"lib/config",
"lib/hooks",
"lib/loader",
"lib/ui",
"lib/fixes",
"lib/ascended",
"items/misc/atlases",
"items/misc/rarities",
"items/misc/spectrals",
"items/misc/content_sets",
"items/misc/consumable_types",
"items/misc/enhancements",
"items/misc/seals",
"items/misc/editions",
"items/misc/sounds",
"items/misc/tags",
"items/misc/boosters",
"items/misc/vouchers",
"items/misc/decks",
"items/misc/blinds",
"items/misc/stakes",
"items/misc/challenges",
"items/misc/achievements",
"items/misc/other",
"items/misc/quips",
--"items/jokers/cursed_jokers",
"items/jokers/misc_jokers",
--"items/jokers/epic_jokers",
--"items/jokers/exotic_jokers",
"items/jokers/rlegendary_jokers",
"items/jokers/entropic_jokers",
"items/jokers/dice_jokers",
"items/inversions/reverse_tarots",
"items/inversions/reverse_spectrals",
"items/inversions/reverse_planets",
"items/inversions/reverse_runes",
--"items/inversions/reverse_codes",
"items/misc/blind_tokens",
--"items/inversions/define",
"items/misc/dailies",
"items/altpath/blinds",
"items/misc/runes",
"items/jokers/void_jokers",
"compat/compat_loader"
}
Entropy.load_files(i)
Entropy.display_name = SMODS.current_mod.display_name
SMODS.current_mod.optional_features = {
retrigger_joker = true,
post_trigger = true,
}
if not Cryptid.mod_whitelist then Cryptid.mod_whitelist = {} end
Cryptid.mod_whitelist["Entropy"] = true
if not Cryptid.mod_gameset_whitelist then Cryptid.mod_gameset_whitelist = {} end
Cryptid.mod_gameset_whitelist["entr"] = true
Cryptid.mod_gameset_whitelist["Entropy"] = true
Entropy.update_daily_seed()
if Entropy.config.family_mode then
Cryptid_config.family_mode = true
end
for i, category in pairs(Entropy.contents) do
table.sort(category, function(a, b) return a.order < b.order end)
for i2, item in pairs(category) do
if not SMODS[item.object_type] then Entropy.fucker = item.object_type
else
SMODS[item.object_type](item)
if item.init then item.init() end
end
item = nil
end
category = nil
end
if Cryptid.misprintize_value_blacklist then
Cryptid.misprintize_value_blacklist.debuff_timer = false
Cryptid.misprintize_value_blacklist.superego_copies = false
Cryptid.misprintize_value_blacklist.entr_hotfix_rounds = false
Cryptid.misprintize_value_blacklist.debuff_timer = false
Cryptid.misprintize_value_blacklist.debuff_timer_max = false
Cryptid.misprintize_value_blacklist.left = false
end
SMODS.current_mod.calculate = function(self, context)
return Entropy.misc_calculations(self, context)
end
if G.P_CENTERS.e_negative then
G.P_CENTERS.e_negative.no_doe = true
end
SMODS.current_mod.menu_cards = function()
return {
func = function()
for i, v in pairs(G.title_top.cards) do
if v.config.center.key == "c_cryptid" then
G.title_top:remove_card(v)
v:remove()
end
if v.base and v.base.value and v.base.value == "Ace" then
--G.title_top:remove_card(v)
--v:remove()
v:set_base()
G.P_CENTERS.j_entr_title_card.discovered = true
v:set_ability(G.P_CENTERS.j_entr_title_card)
if v.children.front then
v.children.front:remove()
v.children.front = nil
end
math.randomseed(os.time())
if math.random() < 0.01 then
v:set_edition("e_entr_freaky")
else
v:set_edition("e_entr_solar")
end
end
end
end,
}
end
SMODS.Joker {
key = "title_card",
atlas = "titlecard",
no_collection = true,
in_pool = function() return false end,
rarity = "entr_zenith",
pos = {x=0, y=0},
soul_pos = {x=1, y=0},
no_doe = true,
no_collection = true,
display_size = { w = 122, h = 122 },
in_pool = function()
return false
end,
cry_order = 999999,
discovered = true,
unlocked = true
}