Move code back into the update function

This commit is contained in:
Emik 2025-03-28 16:14:33 +01:00
parent 0838c558b6
commit 0cea7728fe
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
3 changed files with 12 additions and 13 deletions

View file

@ -12,5 +12,5 @@
"Bakery (>=0.1.26~*)" "Bakery (>=0.1.26~*)"
], ],
"conflicts": ["Jen"], "conflicts": ["Jen"],
"version": "0.2.0" "version": "0.2.1"
} }

View file

@ -176,18 +176,6 @@ SMODS.Joker {
soul_pos = {x = 1, y = 0}, soul_pos = {x = 1, y = 0},
cost = 8, cost = 8,
rarity = 3, rarity = 3,
add_to_deck = function(_, _, _)
local honey = SMODS.find_card("j_jane_honey")
for _, v in ipairs(honey) do
if not v.ability.extra.is_corrupted and v ~= honey[#honey] then
v.sell_cost = v.sell_cost + honey[#honey].sell_cost
v.ability.extra.is_corrupted = true
honey[#honey]:start_dissolve()
honey[#honey] = nil
end
end
end,
loc_vars = function(_, _, card) loc_vars = function(_, _, card)
local is_corrupted = card.ability.extra.is_corrupted local is_corrupted = card.ability.extra.is_corrupted

View file

@ -329,6 +329,17 @@ function Game:update(dt)
G.P_BLINDS["bl_jane_wee"].mult = 22 / blind G.P_BLINDS["bl_jane_wee"].mult = 22 / blind
G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind
local honey = SMODS.find_card("j_jane_honey")
for _, v in ipairs(honey) do
if not v.ability.extra.is_corrupted and v ~= honey[#honey] then
v.sell_cost = v.sell_cost + honey[#honey].sell_cost
v.ability.extra.is_corrupted = true
honey[#honey]:start_dissolve()
honey[#honey] = nil
end
end
if not Jane.bans_done then if not Jane.bans_done then
delete_hardbans() delete_hardbans()
Jane.bans_done = true Jane.bans_done = true