diff --git a/manifest.json b/manifest.json index 7323946..34b8851 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.5.23" + "version": "1.5.24" } \ No newline at end of file diff --git a/src/blind.lua b/src/blind.lua index 25ea17a..5e88511 100644 --- a/src/blind.lua +++ b/src/blind.lua @@ -62,40 +62,38 @@ SMODS.Blind { end, } -if not Cryptid then - return -end +if Cryptid then + SMODS.Blind { + loc_txt = { + name = "The Insignia", + text = {"Hand must contain", "only one suit"}, + }, + key = "insignia", + config = {}, + boss = {min = 2, max = 10, no_orb = true, hardcore = true}, + boss_colour = HEX("a5aa00"), + atlas = "janeblinds", + pos = {x = 0, y = 9}, + vars = {}, + dollars = 5, + mult = 2, + debuff_hand = function(_, cards, _, _, _) + local numsuits = 0 + local checked_suits = {} -SMODS.Blind { - loc_txt = { - name = "The Insignia", - text = {"Hand must contain", "only one suit"}, - }, - key = "insignia", - config = {}, - boss = {min = 2, max = 10, no_orb = true, hardcore = true}, - boss_colour = HEX("a5aa00"), - atlas = "janeblinds", - pos = {x = 0, y = 9}, - vars = {}, - dollars = 5, - mult = 2, - debuff_hand = function(_, cards, _, _, _) - local numsuits = 0 - local checked_suits = {} + for _, card in ipairs(cards) do + if not card:nosuit() and not checked_suits[card.base.suit] then + numsuits = numsuits + 1 + checked_suits[card.base.suit] = true - for _, card in ipairs(cards) do - if not card:nosuit() and not checked_suits[card.base.suit] then - numsuits = numsuits + 1 - checked_suits[card.base.suit] = true - - if numsuits > 1 then - return true + if numsuits > 1 then + return true + end end end - end - end, -} + end, + } +end SMODS.Blind { loc_txt = {