Fix honey crash
This commit is contained in:
parent
3c222e0f64
commit
14ac080804
3 changed files with 3 additions and 3 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.5.21"
|
"version": "1.5.22"
|
||||||
}
|
}
|
||||||
|
|
@ -306,7 +306,7 @@ function SMODS.poll_rarity(_pool_key, _rand_key)
|
||||||
local max = 0
|
local max = 0
|
||||||
|
|
||||||
for _, v in pairs(SMODS.find_card("j_jane_honey")) do
|
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
|
end
|
||||||
|
|
||||||
local rarity = orig_rarity(_pool_key, _rand_key)
|
local rarity = orig_rarity(_pool_key, _rand_key)
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ for _, v in pairs({
|
||||||
can_divide = true,
|
can_divide = true,
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
in_pool = function(_, _)
|
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,
|
end,
|
||||||
use = function(_, _, _, _)
|
use = function(_, _, _, _)
|
||||||
play_sound("jane_e_gilded", 1.25, 0.4)
|
play_sound("jane_e_gilded", 1.25, 0.4)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue