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

show high spheres among suggested spells

parent e36b9297
Branches
Tags
No related merge requests found
......@@ -63,6 +63,17 @@
\setcounter{Water}{0}
\newcounter{Fate}
\setcounter{Fate}{0}
\newcounter{Mind}
\setcounter{Mind}{0}
\newcounter{Light}
\setcounter{Light}{0}
\newcounter{Life}
\setcounter{Life}{0}
\newcounter{Death}
\setcounter{Death}{0}
\newcounter{Force}
\setcounter{Force}{0}
\newcommand\characterWeapon{}
\newcommand\characterArmour{}
......@@ -129,3 +140,19 @@
\\%
}
\newcommand\setXtoLowestOf[3]{%
\ifnum\value{#2}<\value{#3}%
\setcounter{#1}{\value{#2}}%
\else%
\setcounter{#1}{\value{#3}}%
\fi%
}
\newcommand\setHighSpheres{
\setXtoLowestOf{Mind}{Water}{Air}
\setXtoLowestOf{Death}{Air}{Fate}
\setXtoLowestOf{Light}{Air}{Fire}
\setXtoLowestOf{Force}{Fire}{Earth}
\setXtoLowestOf{Life}{Earth}{Water}
}
......@@ -155,11 +155,12 @@
\newcommand\showStdSpells{
\setcounter{enc}{0}
\setHighSpheres
\begin{description}
\settoggle{fullSpells}{false}
\foreach\n in {3,2,1}{
\ifnum\value{enc}<3
\foreach \s in {Earth,Air,Fire,Water,Fate}{
\foreach \s in {Light,Death,Life,Mind,Force,Earth,Air,Fire,Water,Fate}{
\ifnumcomp{\value{\s}}{=}{\n}{
\input{config/spells/\s\n.tex}
\stepcounter{enc}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment