Make "Faster Planets" really really really fast

This commit is contained in:
Emik 2026-05-23 18:59:24 +02:00
parent f611e700dc
commit 1b2be0aa03
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF

View file

@ -52,6 +52,23 @@ function Card:use_consumeable(area, copier, ...)
}
end
local orig_use_card = G.FUNCS.use_card
function G.FUNCS.use_card(e, ...)
if not SMODS.Mods.Roland.config.faster_planets or
not (((e.config.ref_table or {}).ability or {}).consumeable or {}).hand_type then
return orig_use_card(e, ...)
end
e.config.ref_table:use_consumeable(e.config.ref_table.area)
SMODS.calculate_context {
using_consumeable = true,
consumeable = e.config.ref_table,
area = e.config.ref_table.from_area,
}
end
local orig_create_card_for_shop = create_card_for_shop
function create_card_for_shop(...)