From 435fdc9ea12c30051f71af9d45c64fd4b7829aea Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Mon, 21 Aug 2023 04:17:33 +0200
Subject: [PATCH] give spells description in macro

---
 docs.tex  | 7 ++++---
 magic.sty | 5 ++++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/docs.tex b/docs.tex
index c82017ae..31d88060 100644
--- a/docs.tex
+++ b/docs.tex
@@ -144,13 +144,13 @@ They also compile an optional index (this requires one spell index command).
 \makeindex[name=spells,
 title={Spell Summaries},columns=2]
 
-
 \spell{Quake}% Name
   {Earth}% Spheres
   {Wane}% Action
   {\distant, \duplicated}% Enhancements
   {Caving}% Skill
-  {Ground shakes}% Description
+  {Ground shakes}% Short Description
+  {Brrrrrr}% Long Description
 
 \printindex[spells]
 \end{verbatim}
@@ -162,7 +162,8 @@ After inputting that, you can get the spell, and the `printindex' command will c
   {Wane}% Action
   {\distant, \duplicated}% Enhancements
   {Caving}% Skill
-  {Ground shakes}% Description
+  {Ground shakes}% Short Description
+  {Brrrrrr}% Long Description
 
 \subsubsection{Magical Items}
 
diff --git a/magic.sty b/magic.sty
index e4d1c3cc..b76b9ef4 100644
--- a/magic.sty
+++ b/magic.sty
@@ -18,9 +18,10 @@
 % 4 = Enhancements
 % 5 = Skill
 % 6 = Description
+% 7 = Longer notes
 
 
-\newcommand{\spell}[6]{
+\newcommand{\spell}[7]{
   \settoggle{distant}{false}%
   \settoggle{insubstantial}{false}
   \setcounter{spelllevel}{1}%
@@ -43,6 +44,8 @@
   \underline{Skill:~#5}
   \vspace{.5em}\afterparnoindent
   \index[spells]{\textbf{#1}: \iftoggle{duplicated}{\spellArea~targets}{Have target} #6. (Cost:~\arabic{spelllevel}, Spheres:~#2, Skill:~#5, \mbox{Range: \spellRange})}
+
+  #7
 }
 
 \newcommand\spellRange{}
-- 
GitLab