Fix erroneous state in new deck

This commit is contained in:
Emik 2026-07-12 23:55:51 +02:00
parent d9df6e86ca
commit b4c05fe828
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "2.9.49",
"version": "2.9.50",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -154,21 +154,22 @@ local function redeem(key, fast)
delay = 1,
func = function()
local voucher = SMODS.create_card {key = key, set = "Voucher"}
voucher.T.y = (fast and pseudorandom(pseudoseed "Roland_wish_deck") + 0.5 or 1) * 4.25
voucher.T.x = (fast and pseudorandom(pseudoseed "Roland_wish_deck") + 0.5 or 1) * 9
voucher.cost = 0
voucher.T.x = (fast and pseudorandom(pseudoseed "Roland_wish_deck") + 0.5 or 1) * 9
voucher.T.y = (fast and pseudorandom(pseudoseed "Roland_wish_deck") + 0.5 or 1) * 4.25
voucher:start_materialize()
q {
delay = 1,
front = true,
func = function()
if fast then
play_sound "card1"
voucher:apply_to_run()
voucher:juice_up(0.3, 0.5)
else
local state = G.STATE
voucher:redeem()
G.STATE = state
end
q {