Skip to content

Commit a8a1d7a

Browse files
authored
Merge pull request #54 from lord-ruby/dev
add curse config
2 parents e56115e + 3722284 commit a8a1d7a

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

config.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ return {
66
["override_glitched"] = true,
77
["omega_aleph"] = false,
88
["inversion_queues"] = 2,
9+
["curses_enabled"] = true
910
}

items/misc/stakes.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Entropy.curses = {
134134
}
135135

136136
function Entropy.get_curse_rate()
137+
if not Entropy.config.curses_enabled then return 0 end
137138
if to_big(G.GAME.round_resets.ante) <= to_big(G.GAME.win_ante or 8) then return 0 end
138139
local key = G.GAME.selected_back and G.GAME.selected_back.effect.center.original_key
139140
local wins = G.PROFILES and G.SETTINGS.profile and G.PROFILES[G.SETTINGS.profile].deck_usage and G.PROFILES[G.SETTINGS.profile].deck_usage[key] and G.PROFILES[G.SETTINGS.profile].deck_usage[key].wins or {}

lib/config.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ local entrConfigTab = function()
4848
ref_value = "family_mode",
4949
callback = Cryptid.reload_localization,
5050
})
51+
entr_nodes[#entr_nodes + 1] = create_toggle({
52+
label = localize("curses_enabled"),
53+
active_colour = HEX("40c76d"),
54+
ref_table = Entropy.config,
55+
ref_value = "curses_enabled",
56+
})
5157
if SMODS.Mods["Cryptid"] and SMODS.Mods["Cryptid"].can_load then
5258
entr_nodes[#entr_nodes + 1] = create_toggle({
5359
label = localize("k_entr_faster_ante_scaling"),

localization/en-us.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5523,6 +5523,7 @@ local decs = {
55235523
flipside_full = 'Full',
55245524

55255525
flipside_info = 'Inversion display when holding Flipside',
5526+
curses_enabled = "Enable Curses outside of Obsidian Stake",
55265527

55275528
b_stat_CBlind = "Blind Token",
55285529
b_stat_Fraud = "Fraud",

0 commit comments

Comments
 (0)