%
% LORE.cls - A class for LORE sourcebooks
%
%

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{LORE}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions
\LoadClass{book}

\usepackage{fullpage}
\headsep=14pt


\pagestyle{headings}

\RequirePackage{calc}
\RequirePackage{ifthen}
\RequirePackage{url}
\RequirePackage{synttree}


% Usage \trait{name}{flavorText}{applicability}{description}
\newcommand{\trait}[4]{
 \subsubsection{#1}
 \textit{#2}
 \\#4\\\\
 \textit{Applicable Settings}: #3

}

% Used for making facilities tables
% Usage \facline{Name}{Settings}{Description}
\newcommand{\facline}[3] {
	#1 & #2 & #3 \\ \hline
}

\newcommand{\exampleline}[1] {
	\noindent\textbf{#1}:
}

% Usage \skill{name}{flavor}{description}
\newcommand{\skill}[3] {

	\subsection{#1}
	\ifthenelse{\equal{#2}{\null}}{\null}{\textit{#2}}
	\\#3

}

%Usage \subskill{name}{flavor}{parent}{description}
\newcommand{\subskill}[4] {

	\subsubsection{#1}
	\ifthenelse{\equal{#2}{\null}}{\null}{\textit{#2}}
	\\#4

}

\newcommand{\subsubskill}[4] {

	\paragraph{#1 (#3)}
	\ifthenelse{\equal{#2}{\null}}{\null}{\textit{#2}}
	\\#4

}
