SMODS.Rank {
  key = 'Apostle',
  card_key = 'APOSTLE',
  shorthand = 'T',

  lc_atlas = 'ranks_lc',
  hc_atlas = 'ranks_hc',
  pos = { x = 0 },

  straight_edge = true,
  next = { 'Ace' },
  nominal = 12,
  face = true,

  suit_map = {
    Hearts = 0,
    Clubs = 1,
    Diamonds = 2,
    Spades = 3,
    paperback_Stars = 4,
    paperback_Crowns = 5,
    bunc_Fleurons = 6,
    bunc_Halberds = 7,
    minty_3s = 8,
  },

  in_pool = function(self, args)
    -- Allows Apostles to be created at the start of a run, used only for Dreamer's Sleeve
    if args and args.initial_deck and G.GAME.starting_params.paperback_spawn_apostles then
      return true
    end

    -- Allows forcing Apostles to be included
    if args and args.paperback and args.paperback.allow_apostles then
      return true
    end

    return false
  end
}

-- Ace adjustments to allow for straights with Apostle
SMODS.Rank:take_ownership('Ace',
  {
    next = { '2', 'paperback_Apostle' },
    straight_edge = false
  }
)
