Skip to content

Commit d916d56

Browse files
change how pointer redeems vouchers
this should hopefully be a lot less jank and have fewer issues
1 parent d6035ec commit d916d56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

items/pointer.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,13 @@ local pointer = {
309309
and valid_check[2] == "Voucher"
310310
and valid_check[3]
311311
then
312+
if not G.GAME.used_vouchers[current_card] then
313+
G.GAME.used_vouchers[current_card] = true
314+
end
315+
Card.apply_to_run(nil, G.P_CENTERS[current_card])
316+
play_sound("generic1", 0.9 + math.random() * 0.1, 0.8)
317+
play_sound("holo1", 1.2 + math.random() * 0.1, 0.4)
318+
--[[
312319
local area
313320
if G.STATE == G.STATES.HAND_PLAYED then
314321
if not G.redeemed_vouchers_during_hand then
@@ -340,6 +347,8 @@ local pointer = {
340347
return true
341348
end,
342349
}))
350+
]]
351+
--
343352
created = true
344353
end
345354
if -- Booster check

0 commit comments

Comments
 (0)