Skip to content

Commit 0f5ea5f

Browse files
committed
2 parents b73c788 + 3a51024 commit 0f5ea5f

File tree

7 files changed

+43
-16
lines changed

7 files changed

+43
-16
lines changed

Cryptid.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
--- MOD_DESCRIPTION: Adds unbalanced ideas to Balatro.
77
--- BADGE_COLOUR: 708b91
88
--- DEPENDENCIES: [Talisman>=2.0.9, Steamodded>=1.0.0~ALPHA-1312c]
9-
--- VERSION: 0.5.4
9+
--- VERSION: 0.5.5
1010
--- PRIORITY: 2147483647
1111

1212
----------------------------------------------

items/code.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ local delete = {
21052105
a = G.shop_vouchers
21062106
c = G.shop_vouchers.highlighted[1]
21072107
if c.shop_voucher then
2108-
G.GAME.current_round.voucher = nil
2108+
G.GAME.current_round.voucher.spawn[c.config.center.key] = nil
21092109
G.GAME.current_round.cry_voucher_edition = nil
21102110
G.GAME.current_round.cry_voucher_stickers =
21112111
{ eternal = false, perishable = false, rental = false, pinned = false, banana = false }
@@ -2826,7 +2826,7 @@ local rework = {
28262826
cost = 4,
28272827
loc_vars = function(self, info_queue)
28282828
info_queue[#info_queue + 1] =
2829-
{ set = "Tag", key = "tag_cry_rework", specific_vars = { "[edition]", "[joker]" } }
2829+
{ set = "Tag", key = "tag_cry_rework", specific_vars = { "[edition]", "[joker]", "n" } }
28302830
return { vars = {} }
28312831
end,
28322832
can_use = function(self, card)

items/deck.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,10 @@ local antimatter = {
473473
},
474474
},
475475
loc_vars = function(self, info_queue, center)
476-
return { key = "b_cry_antimatter" .. (cry_get_gameset(G.P_CENTERS.b_cry_antimatter) == "madness" and "" or "_balanced") }
476+
return {
477+
key = "b_cry_antimatter"
478+
.. (cry_get_gameset(G.P_CENTERS.b_cry_antimatter) == "madness" and "" or "_balanced"),
479+
}
477480
end,
478481
name = "cry-Antimatter",
479482
order = 76,

items/enhanced.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,16 @@ return {
363363
function Card:click()
364364
ccl(self)
365365
if
366-
Galdur and safe_get(Galdur, "run_setup", "current_page") == 1
366+
Galdur
367+
and safe_get(Galdur, "run_setup", "current_page") == 1
367368
and (self.edeck_select or (self.area == safe_get(Galdur, "run_setup", "selected_deck_area") and safe_get(
368369
self,
369370
"config",
370371
"center",
371372
"edeck_type"
372373
)))
373-
or (not Galdur) and (
374-
safe_get(G.GAME, "viewed_back", "effect", "center", "edeck_type")
375-
and (self.back == "viewed_back" or self.edeck_select)
376-
)
374+
or not Galdur
375+
and (safe_get(G.GAME, "viewed_back", "effect", "center", "edeck_type") and (self.back == "viewed_back" or self.edeck_select))
377376
then
378377
if self.edeck_select then
379378
G.PROFILES[G.SETTINGS.profile]["cry_edeck_" .. self.config.center.edeck_type] = self.edeck_select

items/misc_joker.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7457,7 +7457,16 @@ local digitalhallucinations = {
74577457
trigger = "before",
74587458
delay = 0.0,
74597459
func = function()
7460-
local ccard = create_card("Joker", G.jokers, nil, nil, nil, nil, nil, "diha")
7460+
local ccard = create_card(
7461+
boosty.ability.name:find("meme") and "Meme" or "Joker",
7462+
G.jokers,
7463+
nil,
7464+
nil,
7465+
nil,
7466+
nil,
7467+
nil,
7468+
"diha"
7469+
) -- who up wasting their cycles rn
74617470
ccard:set_edition({ negative = true }, true)
74627471
ccard:add_to_deck()
74637472
G.jokers:emplace(ccard)
@@ -7492,6 +7501,7 @@ local digitalhallucinations = {
74927501
ccard:set_edition({ negative = true }, true)
74937502
ccard:start_materialize({ G.C.SECONDARY_SET.Enhanced })
74947503
G.play:emplace(ccard)
7504+
playing_card_joker_effects({ ccard }) -- odd timing
74957505
table.insert(G.playing_cards, ccard)
74967506
return true
74977507
end,
@@ -7512,8 +7522,6 @@ local digitalhallucinations = {
75127522
end,
75137523
}))
75147524
draw_card(G.play, G.deck, 90, "up", nil)
7515-
7516-
playing_card_joker_effects({ true }) -- who knows what most this stuff does, i just copied it from marble jonkler
75177525
return nil, true
75187526
end
75197527
end

items/spectral.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,16 @@ local white_hole = {
3535
for k, v in ipairs(G.handlist) do
3636
if to_big(G.GAME.hands[v].level) > to_big(1) then
3737
local this_removed_levels = G.GAME.hands[v].level - 1
38-
removed_levels = removed_levels + this_removed_levels
39-
if v ~= _hand or not modest then
40-
level_up_hand(used_consumable, v, true, -this_removed_levels)
38+
if
39+
-- Due to how these poker hands are loaded they still techically exist even if Poker Hand Stuff is disabled
40+
-- Because they still exist, While Hole needs to ignore levels from these if disabled (via Black Hole, Planet.lua, etc...)
41+
(v ~= "cry_Bulwark" and v ~= "cry_Clusterfuck" and v ~= "cry_UltPair" and v ~= "cry_WholeDeck")
42+
or cry_card_enabled("set_cry_poker_hand_stuff") == true
43+
then
44+
if v ~= _hand or not modest then
45+
removed_levels = removed_levels + this_removed_levels
46+
level_up_hand(used_consumable, v, true, -this_removed_levels)
47+
end
4148
end
4249
end
4350
end

items/tag.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local cat = {
1212
name = "cry-Cat Tag",
1313
order = 12,
1414
loc_vars = function(self, info_queue, tag)
15-
return { vars = { tag.ability.level } }
15+
return { vars = { tag.ability.level or 1 } }
1616
end,
1717
}
1818
local epic_tag = {
@@ -261,12 +261,21 @@ local gambler = {
261261
emp.ability.shiny = cry_rollshinybool()
262262
end
263263
add_tag(emp)
264+
tag.triggered = true
264265
emp:apply_to_run({ type = "new_blind_choice" })
265266
G.CONTROLLER.locks[lock] = nil
266267
return true
267268
end)
268269
else
269270
tag:nope()
271+
tag.triggered = true
272+
for i = 1, #G.GAME.tags do
273+
if G.GAME.tags[i] ~= tag then
274+
if G.GAME.tags[i]:apply_to_run({ type = "new_blind_choice" }) then
275+
break
276+
end
277+
end
278+
end
270279
end
271280
tag.triggered = true
272281
return true
@@ -305,6 +314,7 @@ local bundle = {
305314
_tag.ability.shiny = cry_rollshinybool()
306315
add_tag(_tag)
307316
if i == 1 then
317+
tag.triggered = true
308318
_tag:apply_to_run({ type = "new_blind_choice" })
309319
end
310320
end

0 commit comments

Comments
 (0)