Do not run check outside of in-game

This commit is contained in:
Emik 2025-03-28 16:25:38 +01:00
parent 39d429e56d
commit 45d7be627a
Signed by untrusted user who does not match committer: emik
GPG key ID: 09CDFF9E5703688D
2 changed files with 13 additions and 8 deletions

View file

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

View file

@ -339,18 +339,23 @@ function Game:update(dt)
G.P_BLINDS["bl_jane_wee"].mult = 22 / blind
G.P_BLINDS["bl_jane_descending"].mult = math.floor(8 * math.sqrt(blind)) / blind
while true do
while G.GAME do
local honey = SMODS.find_card("j_jane_honey")
local first = find_uncorrupted(honey, 1)
if not first then
break
end
local second = find_uncorrupted(honey, first)
if second then
if not second then
break
end
honey[first].sell_cost = v.sell_cost + honey[second].sell_cost
honey[first].ability.extra.is_corrupted = true
honey[second]:start_dissolve()
else
break
end
end
if not Jane.bans_done then