Skip to content

Commit 1d373e6

Browse files
committed
fix deck related stuff
1 parent 96825a4 commit 1d373e6

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

items/deck.lua

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ local antimatter = {
841841
or skip
842842
then
843843
G.GAME.modifiers.cry_misprint_min = 1
844-
G.GAME.modifiers.cry_misprint_max = 10
844+
G.GAME.modifiers.cry_misprint_max = 4
845845
end
846846
-- Infinite Deck
847847
if
@@ -861,29 +861,6 @@ local antimatter = {
861861
}))
862862
G.GAME.starting_params.hand_size = G.GAME.starting_params.hand_size + 1
863863
end
864-
-- Wormhole deck
865-
if
866-
(Cryptid.safe_get(G.PROFILES, G.SETTINGS.profile, "deck_usage", "b_cry_wormhole", "wins", 8) or 0)
867-
~= 0
868-
or skip
869-
then
870-
G.GAME.modifiers.cry_negative_rate = 20
871-
872-
if Cryptid.enabled("set_cry_exotic") == true then
873-
G.E_MANAGER:add_event(Event({
874-
func = function()
875-
if G.jokers then
876-
local card =
877-
create_card("Joker", G.jokers, nil, "cry_exotic", nil, nil, nil, "cry_wormhole")
878-
card:add_to_deck()
879-
card:start_materialize()
880-
G.jokers:emplace(card)
881-
return true
882-
end
883-
end,
884-
}))
885-
end
886-
end
887864
-- Redeemed deck
888865
if
889866
(Cryptid.safe_get(G.PROFILES, G.SETTINGS.profile, "deck_usage", "b_cry_redeemed", "wins", 8) or 0)
@@ -1131,6 +1108,22 @@ local antimatter = {
11311108
end,
11321109
}))
11331110
end
1111+
--Wormhole Deck
1112+
if
1113+
context.end_of_round
1114+
and not context.individual
1115+
and not context.repetition
1116+
and not context.blueprint
1117+
and G.GAME.blind
1118+
and G.GAME.blind.config.blind
1119+
and G.GAME.blind.config.blind.boss
1120+
then
1121+
if G.jokers.cards[1] and G.jokers.cards[1].config.center.rarity ~= "cry_exotic" then
1122+
Cryptid.with_deck_effects(G.jokers.cards[1], function(card)
1123+
Cryptid.upgrade_rarity(card, "cry_wormhole")
1124+
end)
1125+
end
1126+
end
11341127
end
11351128
end
11361129
function Cryptid.get_antimatter_vouchers(voucher_table, skip)

0 commit comments

Comments
 (0)