R/pc_options.R

Defines functions pc_background

#' @export
pc_background <- function(system = "5e", complete = FALSE){
  backs <- switch(system,
                  "5e" = backgrounds_5e,
                  "p2e" = backgrounds_p2e)
  num <- sample(1:nrow(backs), 1)
  if(complete){
    return(backs[num,])
  }else{
    return(backs[num,1])
  }
}
rpg-tips/RPGTips documentation built on June 30, 2020, 5:39 p.m.