if PB_UTIL.config.tags_enabled then
  SMODS.Back {
    key = 'passionate',
    atlas = 'decks_atlas',
    pos = { x = 5, y = 0 },
    config = {
      no_interest = true
    },
    unlocked = false,
    locked_loc_vars = function(self, info_queue, back)
      return {
        vars = {
          localize { type = 'name_text', set = 'Stake', key = 'stake_purple' },
          colours = { get_stake_col(6) }
        }
      }
    end,
    check_for_unlock = function(self, args)
      return args.type == 'win_stake' and get_deck_win_stake() >= 6
    end,

    loc_vars = function(self, info_queue, card)
      return {
        vars = {
          localize {
            type = 'name_text',
            set = 'Tag',
            key = 'tag_paperback_high_risk'
          }
        }
      }
    end,

    calculate = function(self, back, context)
      -- Give a High Risk tag after defeating a boss
      if context.end_of_round and context.beat_boss then
        -- Equivalent to context.main_eval, which doesn't exist for decks
        if not context.repetition and not context.individual then
          PB_UTIL.add_tag('tag_paperback_high_risk', nil, false)
        end
      end
    end
  }
end
