SMODS.Blind {
  key = 'flat',
  boss = {
    min = 1,
  },

  in_pool = function(self)
    if G.GAME.bosses_used.bl_paperback_sharp == 0 then
      return true
    end

    return false
  end,

  boss_colour = HEX('4680B8'),
  atlas = 'music_blinds_atlas',
  pos = { y = 4 },

  calculate = function(self, blind, context)
    if blind.disabled then
      return
    end

    if context.after then
      PB_UTIL.use_consumable_animation(nil, context.full_hand, function()
        for k, v in pairs(context.full_hand) do
          assert(SMODS.modify_rank(v, -1))
        end
      end)
    end
  end
}
