Skip to content

Commit cec996e

Browse files
committed
Update overrides.lua
1 parent 4c7ac42 commit cec996e

File tree

1 file changed

+1
-75
lines changed

1 file changed

+1
-75
lines changed

lib/overrides.lua

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -478,81 +478,7 @@ function Game:update(dt)
478478
and not G.deck.cards[1]
479479
then
480480
--im having to manually recreate some of this idk why
481-
G.RESET_BLIND_STATES = true
482-
G.RESET_JIGGLES = true
483-
G.GAME.blind.in_blind = false
484-
if G.GAME.blind.config.blind.cry_before_cash and not G.GAME.blind.disabled then
485-
G.GAME.blind:cry_before_cash()
486-
else
487-
G.GAME.cry_make_a_decision = nil
488-
489-
G.STATE = G.STATES.ROUND_EVAL
490-
G.STATE_COMPLETE = false
491-
end
492-
if G.GAME.blind_on_deck == "Small" then
493-
G.GAME.round_resets.blind_states.Small = "Defeated"
494-
elseif G.GAME.blind_on_deck == "Big" then
495-
G.GAME.round_resets.blind_states.Big = "Defeated"
496-
else
497-
if G.GAME.current_round.cry_voucher_stickers.pinned == false then
498-
G.GAME.current_round.voucher = SMODS.get_next_vouchers()
499-
G.GAME.current_round.cry_voucher_stickers = Cryptid.next_voucher_stickers()
500-
G.GAME.current_round.cry_voucher_edition = cry_get_next_voucher_edition() or {}
501-
G.GAME.current_round.cry_bonusvouchers = {}
502-
G.GAME.cry_bonusvouchersused = {} -- i'm not sure why i'm putting these in two separate tables but it doesn't matter much
503-
for i = 1, G.GAME.cry_bonusvouchercount do
504-
G.GAME.current_round.cry_bonusvouchers[i] = SMODS.get_next_vouchers()
505-
end
506-
if G.GAME.modifiers.cry_no_vouchers then
507-
very_fair_quip =
508-
pseudorandom_element(G.localization.misc.very_fair_quips, pseudoseed("cry_very_fair"))
509-
end
510-
end
511-
G.GAME.round_resets.blind_states.Boss = "Defeated"
512-
for k, v in ipairs(G.playing_cards) do
513-
v.ability.played_this_ante = nil
514-
end
515-
ease_ante(G.GAME.blind and G.GAME.blind:cry_calc_ante_gain() or 1)
516-
Cryptid.apply_ante_tax()
517-
delay(0.4)
518-
check_for_unlock({ type = "ante_up", ante = G.GAME.round_resets.ante + 1 })
519-
end
520-
521-
if G.GAME.round_resets.temp_handsize then
522-
G.hand:change_size(-G.GAME.round_resets.temp_handsize)
523-
G.GAME.round_resets.temp_handsize = nil
524-
end
525-
if G.GAME.round_resets.temp_reroll_cost then
526-
G.GAME.round_resets.temp_reroll_cost = nil
527-
calculate_reroll_cost(true)
528-
end
529-
for _, v in pairs(find_joker("cry-loopy")) do
530-
if v.ability.extra.retrigger ~= 0 then
531-
v.ability.extra.retrigger = 0
532-
card_eval_status_text(v, "extra", nil, nil, nil, { message = localize("k_reset"), colour = G.C.GREEN })
533-
end
534-
end
535-
for _, v in pairs(G.deck.cards) do
536-
v.sus = nil
537-
end
538-
if G.GAME.sus_cards then
539-
SMODS.calculate_context({ remove_playing_cards = true, removed = G.GAME.sus_cards })
540-
G.GAME.sus_cards = nil
541-
end
542-
543-
reset_idol_card()
544-
reset_mail_rank()
545-
reset_ancient_card()
546-
reset_castle_card()
547-
for _, mod in ipairs(SMODS.mod_list) do
548-
if mod.reset_game_globals and type(mod.reset_game_globals) == "function" then
549-
mod.reset_game_globals(false)
550-
end
551-
end
552-
for k, v in ipairs(G.playing_cards) do
553-
v.ability.discarded = nil
554-
v.ability.forced_selection = nil
555-
end
481+
556482
end
557483
end
558484

0 commit comments

Comments
 (0)