Skip to content

Commit 4c158f6

Browse files
SUS adds cards to deck instead of hand
-sus adds copied cards to the deck instead of the hand to hopefully fix issues with cards persisting in the hand when the round ends
1 parent 15c5c81 commit 4c158f6

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

items/misc_joker.lua

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,11 +1878,11 @@ local sus = {
18781878
#king_of_hearts_cards > 0 and pseudorandom_element(king_of_hearts_cards, pseudoseed("cry_sus2"))
18791879
) or chosen_card
18801880
local _c = copy_card(to_copy, nil, nil, G.playing_card)
1881-
_c:start_materialize()
18821881
_c:add_to_deck()
18831882
G.deck.config.card_limit = G.deck.config.card_limit + 1
18841883
table.insert(G.playing_cards, _c)
1885-
G.hand:emplace(_c)
1884+
G.play:emplace(_c)
1885+
_c:start_materialize()
18861886
playing_card_joker_effects({ _c })
18871887
return true
18881888
end,
@@ -1894,7 +1894,14 @@ local sus = {
18941894
G.GAME.sus_cards = destroyed_cards
18951895
end
18961896
-- SMODS.calculate_context({ remove_playing_cards = true, removed = G.GAME.sus_cards })
1897-
return { message = localize("cry_sus_ex") }
1897+
return {
1898+
message = localize("cry_sus_ex"),
1899+
func = function()
1900+
-- this was moved to here because of a timing issue (no bugs/odd behaviour, but looked weird)
1901+
draw_card(G.play, G.deck, 90, "up", nil)
1902+
playing_card_joker_effects({ _c })
1903+
end
1904+
}
18981905
end
18991906
end,
19001907
cry_credits = {

0 commit comments

Comments
 (0)