Skip to content
Snippets Groups Projects
Verified Commit 59c7be2d authored by Malin Freeborn's avatar Malin Freeborn
Browse files

refactor statblock spheres

parent 70f7d103
Branches
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@
\stepcounter{knacks}%
}
\renewcommand\showKnacks{#4}
\foreach \s in {Air,Earth,Fate,Fire,Water}%
{\ifnum\value{\s}>0 \addtocounter{mp}{3}\fi}
%
\renewcommand\equipment{#5}
\computeStats
......@@ -51,6 +53,12 @@
\showSkills
\ifnum\value{mp}>0%
\textbf{Spheres}:
\foreach \s in {Air,Earth,Fate,Fire,Water}%
{\ifnum\value{\s}>0 \s~\arabic{\s}, \fi}
\fi
\showKnacks
\hrulefill
......@@ -72,9 +80,12 @@
\glsentrytext{ap} \arabic{ap},
\iftoggle{allyCharacter}{$2D6$\ifnum\value{att}>-1 +\fi}{}%
Att \arabic{att},
Dam \dmg{damage},
Dam \dmg{damage}%
\ifnum\value{dr}>0%
\glsentrytext{dr} \arabic{dr} (\arabic{covering})
, \glsentrytext{dr} \arabic{dr} (\arabic{covering})%
\fi%
\ifnum\value{mp}>0%
, \glsentrytext{mp} \arabic{mp}, %
\fi%
}
\end{exampletext}
......@@ -83,13 +94,17 @@
\npc{\F\Hu}{Alice}
\statblock{{1}{2}{3}}%
{{-3}{-2}{-1}}%
{{3}{0}{2}}%
{
\setcounter{Wyldcrafting}{1}
\setcounter{Fire}{1}
\setcounter{Air}{3}
}% SKILLS
{\adrenalinesurge, \mightydraw}% KNACKS
{butter}% EQUIPMENT
\showStdSpells
\npc{\M\Hu}{Bob}
\statblock{{1}{2}{3}}%
{{-3}{-2}{-1}}%
......
......@@ -64,7 +64,7 @@
\newcommand{\mods}{}
\newcommand\showCR{}
\newcommand\absNum[1]{\ifnum\value{#1}>0+\fi\ifnum\value{#1}=0\else\arabic{#1}\fi}
\newcommand\absNum[1]{\ifnum\value{#1}>-1+\fi\arabic{#1}}
% we calculate damage here because we can't display 1d6+6 damage - it has to turn into 2d6+2 damage.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment