Do not run check outside of in-game
This commit is contained in:
parent
39d429e56d
commit
45d7be627a
2 changed files with 13 additions and 8 deletions
|
|
@ -12,5 +12,5 @@
|
||||||
"Bakery (>=0.1.26~*)"
|
"Bakery (>=0.1.26~*)"
|
||||||
],
|
],
|
||||||
"conflicts": ["Jen"],
|
"conflicts": ["Jen"],
|
||||||
"version": "0.2.2"
|
"version": "0.2.3"
|
||||||
}
|
}
|
||||||
19
src/main.lua
19
src/main.lua
|
|
@ -339,18 +339,23 @@ 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
|
||||||
|
|
||||||
while true do
|
while G.GAME do
|
||||||
local honey = SMODS.find_card("j_jane_honey")
|
local honey = SMODS.find_card("j_jane_honey")
|
||||||
local first = find_uncorrupted(honey, 1)
|
local first = find_uncorrupted(honey, 1)
|
||||||
local second = find_uncorrupted(honey, first)
|
|
||||||
|
|
||||||
if second then
|
if not first then
|
||||||
honey[first].sell_cost = v.sell_cost + honey[second].sell_cost
|
|
||||||
honey[first].ability.extra.is_corrupted = true
|
|
||||||
honey[second]:start_dissolve()
|
|
||||||
else
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local second = find_uncorrupted(honey, first)
|
||||||
|
|
||||||
|
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()
|
||||||
end
|
end
|
||||||
|
|
||||||
if not Jane.bans_done then
|
if not Jane.bans_done then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue