Fix faster planets (real)

This commit is contained in:
Emik 2026-07-12 23:46:20 +02:00
parent 50d35bbb4a
commit d9df6e86ca
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 7 additions and 6 deletions

View file

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

View file

@ -61,16 +61,17 @@ function G.FUNCS.use_card(e, ...)
return orig_use_card(e, ...)
end
local normal = ref.area ~= G.pack_cards or not G.GAME.pack_choices or G.GAME.pack_choices <= 0
local normal = G.STATE == G.STATES.SHOP or
ref.area ~= G.pack_cards or
not G.GAME.pack_choices or
G.GAME.pack_choices <= 0
ref.from_area = ref.from_area or ref.area
play_sound("tarot1", percent, 0.6)
discover_card(ref.config.center)
ref:use_consumeable(ref.area)
SMODS.calculate_context {area = ref.area, consumeable = ref, using_consumeable = true}
q(function()
ref:remove()
end)
ref:remove()
if normal then
return