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

refactor \showStdSpells

parent 90f6f9c1
Branches
Tags
No related merge requests found
...@@ -173,7 +173,8 @@ ...@@ -173,7 +173,8 @@
} }
\newcommand\spell[7]{% \newcommand\spell[7]{%
\togglefalse{talisman} \togglefalse{talisman}%
\stepcounter{enc}%
\calcSpell{#1}{#2}{#3}{#4}{#5}{#6}{#7}% \calcSpell{#1}{#2}{#3}{#4}{#5}{#6}{#7}%
\iftoggle{fullSpells}{% \iftoggle{fullSpells}{%
\fullSpell% \fullSpell%
...@@ -193,14 +194,13 @@ ...@@ -193,14 +194,13 @@
\settoggle{fullSpells}{false} \settoggle{fullSpells}{false}
#1 #1
\foreach \n in {3,2,1}{ \foreach \n in {3,2,1}{
\ifnum\value{enc}<3
\foreach \s in {Light,Death,Life,Mind,Force,Earth,Air,Fire,Water,Fate}{ \foreach \s in {Light,Death,Life,Mind,Force,Earth,Air,Fire,Water,Fate}{
\ifnumcomp{\value{\s}}{=}{\n}{ \ifnumcomp{\value{\s}}{=}{\n}{
\ifnum\value{enc}<3
\input{config/spells/\s\n.tex} \input{config/spells/\s\n.tex}
\stepcounter{enc} \fi
}{} }{}
} }
\fi
} }
\end{description} \end{description}
\textcolor{\pageSideColor}{\hrulefill\raisebox{-3pt}{\npcsymbol}} \textcolor{\pageSideColor}{\hrulefill\raisebox{-3pt}{\npcsymbol}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment