Skip to content
Snippets Groups Projects
Unverified Commit a5e20530 authored by Malin Freeborn's avatar Malin Freeborn
Browse files

add \spell command

parent b7ed1e43
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,17 @@ And you can list dice, with results, with the `\texttt{dlist}' environment.
\subsection{Magic}
\subsubsection{Spells}
Spells automatically calculate everything they can.
\spell{Quake}% Name
{Earth}% Spheres
{Large, Twisted, Ranged}% Enhancements
{Caving}% Skill
{GrrrrrrrrglllllllllllbrrrrrrrrrrrrrrBBBBBBB}% Description
\subsubsection{Magical Items}
This is a magical item.
......
......@@ -817,6 +817,24 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
% 1 = Name
% 2 = Spheres
% 3 = Enhancements
% 4 = Skill
% 5 = Description
\newcommand{\spell}[5]{
\setcounter{spelllevel}{1}
\foreach \s in {#3}{
\stepcounter{spelllevel}
}
\subsubsection[\textbf{#1}: #5. (\textit{#4})]{#1}
\index[spells]{\textbf{#1}: #5. (Cost: \arabic{spelllevel}, Spheres: #2, Skill: #4)}
{\small\it Spheres: #2, \glsentrytext{mp} Cost: \arabic{spelllevel}, Enhancements: #3, \underline{Skill: #4}}
\vspace{.5em}\afterparnoindent
}
\newcommand{\magicitem}[7]{%
\vspace{1em}\needspace{1em}\noindent\textbf{#1}%
\index{Magical Item!#1}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment