Make "Faster Planets" really really really fast
This commit is contained in:
parent
f611e700dc
commit
714a2ca404
4 changed files with 29 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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,28 @@ 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
|
||||
|
||||
play_sound("tarot1", percent, 0.6)
|
||||
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()
|
||||
G.GAME.pack_choices = G.GAME.pack_choices - 1
|
||||
local _ = G.GAME.pack_choices <= 0 and G.FUNCS.end_consumeable()
|
||||
end
|
||||
|
||||
local orig_create_card_for_shop = create_card_for_shop
|
||||
|
||||
function create_card_for_shop(...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue