Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Cryptid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ local cryptidConfigTab = function()
ref_table = Cryptid_config,
ref_value = "menu",
})
cry_nodes[#cry_nodes + 1] = create_toggle({
label = localize("cry_feat_alt_rigged"),
active_colour = HEX("1c5c23"),
ref_table = Cryptid_config,
ref_value = "alt_rigged",
})
cry_nodes[#cry_nodes + 1] = UIBox_button({
colour = G.C.CRY_ALTGREENGRADIENT,
button = "reset_gameset_config",
Expand Down
1 change: 1 addition & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ return {
["force_tooltips"] = true, -- i don't actually know what this does
["HTTPS"] = true, -- your internet connection
["menu"] = true, -- i don't know what this does either
["alt_rigged"] = true, --reverts rigged to its old iteration
}
30 changes: 26 additions & 4 deletions items/code.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
local Config = SMODS.current_mod.config



local code = {
object_type = "ConsumableType",
key = "Code",
Expand Down Expand Up @@ -1954,7 +1958,11 @@ local seed = {
return #cards == 1
end,
loc_vars = function(self, info_queue, card)
info_queue[#info_queue + 1] = { key = "cry_rigged", set = "Other", vars = {} }
if (Config.alt_rigged) then
info_queue[#info_queue + 1] = { key = "cry_rigged_alt", set = "Other", vars = {} }
else
info_queue[#info_queue + 1] = { key = "cry_rigged", set = "Other", vars = {} }
end
end,
use = function(self, card, area, copier)
local cards = Cryptid.get_highlighted_cards({ G.jokers, G.hand, G.consumeables, G.pack_cards }, card, 1, 1)
Expand Down Expand Up @@ -1994,10 +2002,18 @@ local rigged = {
atlas = "sticker",
pos = { x = 6, y = 1 },
key = "cry_rigged",
loc_key = function(self)
return Config.alt_rigged and "cry_rigged_alt" or "cry_rigged"
end,
no_sticker_sheet = true,
prefix_config = { key = false },
badge_colour = HEX("14b341"),
order = 605,
loc_vars = function(self, info_queue, card)
return {
key = Config.alt_rigged and "cry_rigged_alt" or "cry_rigged"
}
end,
draw = function(self, card) --don't draw shine
local notilt = nil
if card.area and card.area.config.type == "deck" then
Expand Down Expand Up @@ -2026,9 +2042,15 @@ local rigged = {
end,
calculate = function(self, card, context)
if context.mod_probability and context.trigger_obj == card then
return {
numerator = context.numerator * 2,
}
if (Config.alt_rigged) then
return{
numerator = context.denominator
}
else
return {
numerator = context.numerator * 2,
}
end
end
end,
}
Expand Down
8 changes: 8 additions & 0 deletions localization/en-us.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4501,6 +4501,13 @@ return {
"on this card",
},
},
cry_rigged_alt = {
name = "Rigged",
text = {
"All {C:cry_code}listed{} probabilities",
"are {C:cry_code}guaranteed",
},
},
cry_hooked = {
name = "Hooked",
text = {
Expand Down Expand Up @@ -5142,6 +5149,7 @@ return {
["cry_feat_exotic jokers"] = "Exotic Jokers",
["cry_feat_m jokers"] = "M Jokers",
cry_feat_menu = "Custom Main Menu",
cry_feat_alt_rigged = "Legacy Rigging",
["cry_feat_misc."] = "Misc.",
["cry_feat_misc. jokers"] = "Misc. Jokers",
cry_feat_planets = "Planets",
Expand Down