Skip to content

Commit 573851d

Browse files
authored
Merge pull request #119 from lord-ruby/dev
fix colour definitions
2 parents 3e01085 + 85467d0 commit 573851d

2 files changed

Lines changed: 19 additions & 28 deletions

File tree

items/misc/rarities.lua

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,6 @@ SMODS.Rarity {
1414
badge_colour = Entropy.reverse_legendary_gradient
1515
}
1616

17-
local loc_colour_ref = loc_colour
18-
function loc_colour(_c, default)
19-
if not G.ARGS.LOC_COLOURS then
20-
loc_colour_ref(_c, default)
21-
elseif not G.ARGS.LOC_COLOURS.entr_colours then
22-
G.ARGS.LOC_COLOURS.entr_colours = true
23-
local new_colors = {
24-
entr_entropic = Entropy.entropic_gradient,
25-
entr_reverse_legendary = Entropy.reverse_legendary_gradient,
26-
entr_omen = G.C.Entropy.Omen,
27-
entr_zenith = Entropy.zenith_gradient,
28-
entr_eqmult = HEX("cb7f7f"),
29-
entr_eqchips = HEX("5b89a6"),
30-
entr_freaky = HEX("ff00ea"),
31-
entr_transparent = {0,0,0,0},
32-
entr_trans = Entropy.transgender_gradient,
33-
}
34-
35-
for k, v in pairs(new_colors) do
36-
G.ARGS.LOC_COLOURS[k] = v
37-
end
38-
end
39-
40-
return loc_colour_ref(_c, default)
41-
end
42-
4317
local ease_colour_ref = ease_colour
4418
function ease_colour(orig, new, ...)
4519
if new.colours then orig = new return end
@@ -57,4 +31,21 @@ SMODS.Rarity {
5731
end
5832
return 0
5933
end,
60-
}
34+
}
35+
36+
loc_colour()
37+
local new_colors = {
38+
entr_entropic = Entropy.entropic_gradient,
39+
entr_reverse_legendary = Entropy.reverse_legendary_gradient,
40+
entr_omen = G.C.Entropy.Omen,
41+
entr_zenith = Entropy.zenith_gradient,
42+
entr_eqmult = HEX("cb7f7f"),
43+
entr_eqchips = HEX("5b89a6"),
44+
entr_freaky = HEX("ff00ea"),
45+
entr_transparent = {0,0,0,0},
46+
entr_trans = Entropy.transgender_gradient,
47+
}
48+
49+
for k, v in pairs(new_colors) do
50+
G.ARGS.LOC_COLOURS[k] = v
51+
end

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Entropy",
33
"id": "entr",
4-
"version": "1.3.1",
4+
"version": "1.3.3",
55
"website_url": "https://github.com/lord-ruby/Entropy/tree/main",
66
"description": "A Chaotic Balatro mod focused on Inverted Consumables and expanding on Vanilla mechanics in various other ways. Generally Vanilla adjacent but not exactly Vanilla+",
77
"prefix": "entr",

0 commit comments

Comments
 (0)