Make "Faster Planets" really really really fast
This commit is contained in:
parent
f611e700dc
commit
ec2e30bc52
2 changed files with 18 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
"author": [
|
"author": [
|
||||||
"Emik"
|
"Emik"
|
||||||
],
|
],
|
||||||
"version": "2.5.9",
|
"version": "2.5.10",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
"badge_text_colour": "44475A",
|
"badge_text_colour": "44475A",
|
||||||
|
|
|
||||||
|
|
@ -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