Make "Faster Planets" really really really fast
This commit is contained in:
parent
f611e700dc
commit
1b2be0aa03
1 changed files with 17 additions and 0 deletions
|
|
@ -52,6 +52,23 @@ function Card:use_consumeable(area, copier, ...)
|
||||||
}
|
}
|
||||||
end
|
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
|
local orig_create_card_for_shop = create_card_for_shop
|
||||||
|
|
||||||
function create_card_for_shop(...)
|
function create_card_for_shop(...)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue