Fix erroneous state in new deck
This commit is contained in:
parent
d9df6e86ca
commit
876866cc8f
2 changed files with 5 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
"id": "Roland",
|
"id": "Roland",
|
||||||
"name": "Roland",
|
"name": "Roland",
|
||||||
"prefix": "Roland",
|
"prefix": "Roland",
|
||||||
"version": "2.9.49",
|
"version": "2.9.50",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"display_name": "Roland",
|
"display_name": "Roland",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
|
|
|
||||||
|
|
@ -154,21 +154,22 @@ local function redeem(key, fast)
|
||||||
delay = 1,
|
delay = 1,
|
||||||
func = function()
|
func = function()
|
||||||
local voucher = SMODS.create_card {key = key, set = "Voucher"}
|
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.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()
|
voucher:start_materialize()
|
||||||
|
|
||||||
q {
|
q {
|
||||||
delay = 1,
|
delay = 1,
|
||||||
front = true,
|
|
||||||
func = function()
|
func = function()
|
||||||
if fast then
|
if fast then
|
||||||
play_sound "card1"
|
play_sound "card1"
|
||||||
voucher:apply_to_run()
|
voucher:apply_to_run()
|
||||||
voucher:juice_up(0.3, 0.5)
|
voucher:juice_up(0.3, 0.5)
|
||||||
else
|
else
|
||||||
|
local state = G.STATE
|
||||||
voucher:redeem()
|
voucher:redeem()
|
||||||
|
G.STATE = state
|
||||||
end
|
end
|
||||||
|
|
||||||
q {
|
q {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue