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

name all spell components

parent f2b1ded3
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
\date{\today} \date{\today}
\makeindex[name=spells,title={Spell Summaries},columns=2]
\begin{document} \begin{document}
\chapter{How to Make Monsters} \chapter{How to Make Monsters}
...@@ -149,7 +147,8 @@ title={Spell Summaries},columns=2] ...@@ -149,7 +147,8 @@ title={Spell Summaries},columns=2]
\spell{Quake}% Name \spell{Quake}% Name
{Earth}% Spheres {Earth}% Spheres
{\ranged, Twisted}% Enhancements {Wane}% Action
{\distant, \duplicated}% Enhancements
{Caving}% Skill {Caving}% Skill
{Ground shakes}% Description {Ground shakes}% Description
...@@ -160,11 +159,11 @@ After inputting that, you can get the spell, and the `printindex' command will c ...@@ -160,11 +159,11 @@ After inputting that, you can get the spell, and the `printindex' command will c
\spell{Quake}% Name \spell{Quake}% Name
{Earth}% Spheres {Earth}% Spheres
{\ranged, Twisted}% Enhancements {Wane}% Action
{\distant, \duplicated}% Enhancements
{Caving}% Skill {Caving}% Skill
{Ground shakes}% Description {Ground shakes}% Description
\subsubsection{Magical Items} \subsubsection{Magical Items}
This is a magical item. This is a magical item.
......
...@@ -819,33 +819,36 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) ...@@ -819,33 +819,36 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
% 1 = Name % 1 = Name
% 2 = Spheres % 2 = Spheres
% 3 = Enhancements % 3 = Action
% 4 = Skill % 4 = Enhancements
% 5 = Description % 5 = Skill
% 6 = Description
\newcommand{\spell}[5]{ \newcommand{\spell}[6]{
\setcounter{spelllevel}{1} \settoggle{distant}{false}%
\foreach \s in {#3}{ \setcounter{spelllevel}{1}%
\stepcounter{spelllevel} \foreach \s in {#4}{%
} \stepcounter{spelllevel}%
\subsubsection[\textbf{#1}: #5. (\textit{#4})]{#1} }%
\subsubsection[\textbf{#1}: #6. (\textit{#5})]{#1}%
Spheres: #2, #3
Enhancements: #3, #4
\glsentrytext{mp} Cost: \arabic{spelllevel}, #2,
\glsentrytext{mp} Cost: \arabic{spelllevel},
\showRange, \showRange,
\underline{Skill: #4} \iftoggle{duplicated}{\showArea{#2}}{}%
\underline{Skill: #5}
\vspace{.5em}\afterparnoindent \vspace{.5em}\afterparnoindent
\index[spells]{\textbf{#1}: #5. (Cost: \arabic{spelllevel}, Spheres: #2, Skill: #4, \showRange)} \index[spells]{\textbf{#1}: #6. (Cost: \arabic{spelllevel}, Spheres: #2, Skill: #5, \showRange)}
\settoggle{ranged}{false}%
} }
\newcounter{spellRange} \newcounter{spellRange}
\newcommand\showRange{% \newcommand\showRange{%
Range: Range:
\iftoggle{ranged}% \iftoggle{distant}%
{% {%
\ifcase\value{spelllevel}\relax% \ifcase\value{spelllevel}\relax%
Error% Error%
...@@ -872,12 +875,34 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) ...@@ -872,12 +875,34 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
}% }%
} }
\newtoggle{ranged} \newcounter{spellArea}
\settoggle{ranged}{false}
\newcommand\showArea[1]{%
\setcounter{spellArea}{\value{spelllevel}}%
\multiply\value{spellArea} by \value{spellArea}%
\ifcsstrequal{#1}{Air}{%
\multiply\value{spellArea} by \value{spellArea}%
}{}%
Targets: \arabic{spellArea}, %
}
\newtoggle{distant}
\settoggle{distant}{false}
\newtoggle{duplicated}
\settoggle{duplicated}{false}
\newcommand\detailed{Detailed}
\newcommand\duplicated{%
\settoggle{duplicated}{true}%
Duplicated%
}
\newcommand\divergent{Divergent}
\newcommand\ranged{% \newcommand\distant{%
Ranged% \settoggle{distant}{true}%
\settoggle{ranged}{true}% Distant%
} }
\newcommand{\magicitem}[7]{% \newcommand{\magicitem}[7]{%
......
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