Make "Faster Planets" really really really fast

This commit is contained in:
Emik 2026-05-23 18:59:24 +02:00
parent f611e700dc
commit 8daba3c5fe
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
4 changed files with 26 additions and 4 deletions

View file

@ -1,7 +1,7 @@
return {
equinox_assist = false,
faster_planets = true,
harsh_ante_scaling = true,
faster_planets = false,
harsh_ante_scaling = false,
illusion_seal = true,
import_funky = false,
no_wild_debuff = true,

View file

@ -6,7 +6,7 @@
"author": [
"Emik"
],
"version": "2.5.9",
"version": "2.5.10",
"badge_colour": "8BE9FD",
"main_file": "src/main.lua",
"badge_text_colour": "44475A",

View file

@ -427,6 +427,10 @@ joker {
loc_vars = function(_, info_queue)
table.insert(info_queue, G.P_CENTERS.e_Roland_frozen)
end,
inject = function(...)
SMODS.Joker.inject(...)
Bakery_API.retrigger_jokers.j_Roland_arctic = true
end,
calculate = function(_, card, context)
local extra = card.ability.extra

View file

@ -17,7 +17,6 @@ function Card:use_consumeable(area, copier, ...)
if SMODS.Mods.Roland.config.faster_planets and self.ability.consumeable.hand_type then
set_consumeable_usage(self)
level_up_hand(copier or self, self.ability.consumeable.hand_type, true)
self:remove()
return
end
@ -52,6 +51,25 @@ 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,
}
e.config.ref_table:remove()
end
local orig_create_card_for_shop = create_card_for_shop
function create_card_for_shop(...)