Skip to content

Commit 02bf213

Browse files
committed
chore: remove unused code
1 parent 3b84563 commit 02bf213

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/lua/api.lua

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -743,11 +743,6 @@ API.functions["shop"] = function(args)
743743
return
744744
end
745745

746-
-- Used to ensure dollars and shop have been updated before responding, not inheritly atomic
747-
local dollars_before = G.GAME.dollars
748-
local expected_dollars = dollars_before - card.cost
749-
local shop_size_before = #G.shop_jokers.cards
750-
751746
-- activate the buy button using the UI element handler
752747
G.FUNCS.buy_from_shop(card_buy_button)
753748

@@ -766,12 +761,6 @@ API.functions["shop"] = function(args)
766761
-- Capture the state before rerolling for response validation
767762
local dollars_before = G.GAME.dollars
768763
local reroll_cost = G.GAME.current_round and G.GAME.current_round.reroll_cost or 0
769-
local expected_dollars = dollars_before - reroll_cost
770-
771-
local times_rerolled_before = 0
772-
if G.GAME.round_scores and G.GAME.round_scores.times_rerolled then
773-
times_rerolled_before = G.GAME.round_scores.times_rerolled.amt or 0
774-
end
775764

776765
if dollars_before < reroll_cost then
777766
API.send_error_response(

0 commit comments

Comments
 (0)