Skip to content

Commit b93654c

Browse files
Switch The Chromatic to scoring calculation
1 parent d452758 commit b93654c

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

items/blind.lua

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -931,17 +931,32 @@ local chromatic = {
931931
boss = {
932932
min = 1,
933933
max = 666666,
934-
yes_orb = true,
935934
},
936935
atlas = "blinds_two",
937936
order = 25,
938937
boss_colour = HEX("a34f98"),
939-
cry_modify_score = function(self, score)
940-
if math.floor(G.GAME.current_round.hands_played + 1) % 2 == 1 then
941-
return score * -1
942-
else
943-
return score
938+
set_blind = function(self, reset, silent)
939+
G.GAME.chromatic_mod = 0
940+
SMODS.set_scoring_calculation("cry_chromatic")
941+
end,
942+
defeat = function(self, silent)
943+
G.GAME.chromatic_mod = nil
944+
SMODS.set_scoring_calculation("multiply")
945+
end,
946+
disable = function(self, silent)
947+
G.GAME.chromatic_mod = nil
948+
SMODS.set_scoring_calculation("multiply")
949+
end,
950+
press_play = function(self)
951+
if not G.GAME.blind.disabled then
952+
G.GAME.blind.prepped = true
953+
end
954+
end,
955+
drawn_to_hand = function(self)
956+
if G.GAME.blind.prepped and not G.GAME.blind.disabled then
957+
G.GAME.chromatic_mod = G.GAME.chromatic_mod + 1
944958
end
959+
G.GAME.blind.prepped = nil
945960
end,
946961
}
947962

lib/content.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,3 +870,23 @@ SMODS.Scoring_Calculation({
870870
}
871871
end,
872872
})
873+
874+
-- Scoring Calculation for The Chromatic
875+
SMODS.Scoring_Calculation({
876+
key = "chromatic",
877+
func = function(self, chips, mult, flames)
878+
if Cryptid.safe_get(G, "GAME", "chromatic_mod") then
879+
if G.GAME.chromatic_mod % 2 == 1 then
880+
return chips * mult * -1
881+
end
882+
end
883+
return chips * mult
884+
end,
885+
update_ui = function(self, container, chip_display, mult_display, operator)
886+
local aaa = Cryptid.safe_get(G, "GAME", "chromatic_mod") or -1
887+
if aaa > 0 and aaa % 2 == 1 then
888+
ease_colour(G.C.UI_CHIPS, HEX("a34f98"), 0.3)
889+
ease_colour(G.C.UI_MULT, HEX("a34f98"), 0.3)
890+
end
891+
end,
892+
})

0 commit comments

Comments
 (0)