Make "Faster Planets" really really really fast
This commit is contained in:
parent
f611e700dc
commit
4f03403000
5 changed files with 38 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
equinox_assist = false,
|
equinox_assist = false,
|
||||||
faster_planets = true,
|
faster_planets = false,
|
||||||
harsh_ante_scaling = true,
|
harsh_ante_scaling = false,
|
||||||
illusion_seal = true,
|
illusion_seal = true,
|
||||||
import_funky = false,
|
import_funky = false,
|
||||||
no_wild_debuff = true,
|
no_wild_debuff = true,
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -258,11 +258,11 @@ q(function()
|
||||||
end
|
end
|
||||||
|
|
||||||
card.Roland_frozen_proxy = card.Roland_frozen_proxy or
|
card.Roland_frozen_proxy = card.Roland_frozen_proxy or
|
||||||
(Bakery_API.get_proxied_joker() or card).unique_val
|
(Bakery_API.get_proxied_joker() or card).config.center.key
|
||||||
|
|
||||||
---@param v Card
|
---@param v Card
|
||||||
local function eq(v)
|
local function eq(v)
|
||||||
return v.unique_val == card.Roland_frozen_proxy
|
return v.config.center.key == card.Roland_frozen_proxy
|
||||||
end
|
end
|
||||||
|
|
||||||
return f(G.jokers.cards):any(eq) ---@type Card?
|
return f(G.jokers.cards):any(eq) ---@type Card?
|
||||||
|
|
|
||||||
|
|
@ -427,6 +427,10 @@ joker {
|
||||||
loc_vars = function(_, info_queue)
|
loc_vars = function(_, info_queue)
|
||||||
table.insert(info_queue, G.P_CENTERS.e_Roland_frozen)
|
table.insert(info_queue, G.P_CENTERS.e_Roland_frozen)
|
||||||
end,
|
end,
|
||||||
|
inject = function(...)
|
||||||
|
SMODS.Joker.inject(...)
|
||||||
|
Bakery_API.retrigger_jokers.j_Roland_arctic = true
|
||||||
|
end,
|
||||||
calculate = function(_, card, context)
|
calculate = function(_, card, context)
|
||||||
local extra = card.ability.extra
|
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
|
if SMODS.Mods.Roland.config.faster_planets and self.ability.consumeable.hand_type then
|
||||||
set_consumeable_usage(self)
|
set_consumeable_usage(self)
|
||||||
level_up_hand(copier or self, self.ability.consumeable.hand_type, true)
|
level_up_hand(copier or self, self.ability.consumeable.hand_type, true)
|
||||||
self:remove()
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -52,6 +51,35 @@ 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
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
|
||||||
|
local normal = e.config.ref_table.area ~= G.pack_cards
|
||||||
|
e.config.ref_table:remove()
|
||||||
|
|
||||||
|
if normal then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
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
|
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