Fix honey crash

This commit is contained in:
Emik 2026-02-15 16:46:21 +01:00
parent 3c222e0f64
commit 14ac080804
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 3 additions and 3 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [
"Jen"
],
"version": "1.5.21"
"version": "1.5.22"
}

View file

@ -306,7 +306,7 @@ function SMODS.poll_rarity(_pool_key, _rand_key)
local max = 0
for _, v in pairs(SMODS.find_card("j_jane_honey")) do
max = v.debuff and max or math.max(max, v.ability.extra.level)
max = v.debuff and max or math.max(max, tonumber(v.ability.extra.level))
end
local rarity = orig_rarity(_pool_key, _rand_key)

View file

@ -109,7 +109,7 @@ for _, v in pairs({
can_divide = true,
can_use = Jane.can_use,
in_pool = function(_, _)
return G.GAME.used_vouchers.v_jane_token_voucher
return G.GAME.used_vouchers.v_jane_token_voucher or G.GAME.modifiers.Roland_alt_swapper_deck
end,
use = function(_, _, _, _)
play_sound("jane_e_gilded", 1.25, 0.4)