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

provide skeleton for spell calculations

parent 33124265
Branches
Tags
No related merge requests found
......@@ -7,6 +7,49 @@
% |___/
\newcounter{spellCost}
\setcounter{spellCost}{1}
\newcommand\spellName{}
\newcommand\spellEnhancements{}
\newcommand\spellAction{}
\newcommand\spellSphere{}
\newcommand\spellResistance{}
\newcommand\spellSum{}
\newcommand\spellNotes{}
\newcommand\calcSpell[7]{%
\renewcommand\spellName{#1}%
\setcounter{spellCost}{1}%
\foreach \d in {#2}{%
\stepcounter{spellCost}%
}%
\renewcommand\spellEnhancements{#2}%
\renewcommand\spellAction{#3}%
\renewcommand\spellSphere{#4}%
\renewcommand\spellResistance{#5}
\renewcommand\spellSum{#6}
\renewcommand\spellNotes{#7}
}
\newcommand\displaySpell{%
\paragraph{\spellName}
Cost: \arabic{spellCost},
\spellEnhancements,
\spellAction~
\spellSphere
Resisted by: \spellResistance
\spellSum \
\spellNotes
}
% We use spellPotency to track spell effects which are typically larger than the spell's level.
\newcounter{spellPotency}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment