Skip to content

Commit 39327b7

Browse files
tax and chromatic no longer use scoring calcs
1 parent 3fd1746 commit 39327b7

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

items/blind.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,14 @@ local tax = {
294294
return { vars = { localize("cry_tax_placeholder") } }
295295
end,
296296
set_blind = function(self, reset, silent)
297-
SMODS.set_scoring_calculation("cry_tax")
297+
G.GAME.tax_mod = 0.4
298+
--SMODS.set_scoring_calculation("cry_tax")
298299
end,
299300
defeat = function(self, silent)
300-
SMODS.set_scoring_calculation("multiply")
301+
G.GAME.tax_mod = nil
301302
end,
302303
disable = function(self, silent)
303-
SMODS.set_scoring_calculation("multiply")
304+
G.GAME.tax_mod = nil
304305
end,
305306
in_pool = function()
306307
return math.floor(G.GAME.round_resets.hands) >= 3
@@ -937,15 +938,15 @@ local chromatic = {
937938
boss_colour = HEX("a34f98"),
938939
set_blind = function(self, reset, silent)
939940
G.GAME.chromatic_mod = 0
940-
SMODS.set_scoring_calculation("cry_chromatic")
941+
--SMODS.set_scoring_calculation("cry_chromatic")
941942
end,
942943
defeat = function(self, silent)
943944
G.GAME.chromatic_mod = nil
944-
SMODS.set_scoring_calculation("multiply")
945+
--SMODS.set_scoring_calculation("multiply")
945946
end,
946947
disable = function(self, silent)
947948
G.GAME.chromatic_mod = nil
948-
SMODS.set_scoring_calculation("multiply")
949+
--SMODS.set_scoring_calculation("multiply")
949950
end,
950951
press_play = function(self)
951952
if not G.GAME.blind.disabled then

lib/overrides.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,3 +2272,32 @@ function SMODS.calculate_individual_effect(effect, scored_card, key, amount, fro
22722272
end
22732273

22742274
SMODS.scoring_parameter_keys[#SMODS.scoring_parameter_keys + 1] = "cry_broken_swap"
2275+
2276+
local smods_calculate_round_score_stuff = SMODS.calculate_round_score
2277+
function SMODS.calculate_round_score(flames)
2278+
if not G.GAME.current_scoring_calculation then
2279+
return 0
2280+
end
2281+
if Cryptid.safe_get(G, "GAME", "chromatic_mod") then
2282+
if G.GAME.chromatic_mod % 2 == 1 then
2283+
return G.GAME.current_scoring_calculation:func(
2284+
SMODS.get_scoring_parameter("chips", flames),
2285+
SMODS.get_scoring_parameter("mult", flames),
2286+
flames
2287+
) * -1
2288+
end
2289+
end
2290+
if G.GAME.tax_mod then
2291+
return math.floor(
2292+
math.min(
2293+
G.GAME.tax_mod * G.GAME.blind.chips,
2294+
G.GAME.current_scoring_calculation:func(
2295+
SMODS.get_scoring_parameter("chips", flames),
2296+
SMODS.get_scoring_parameter("mult", flames),
2297+
flames
2298+
)
2299+
) + 0.5
2300+
)
2301+
end
2302+
return smods_calculate_round_score_stuff(flames)
2303+
end

0 commit comments

Comments
 (0)