From 62084a284220341e029a30cf143f1d6f8ff533b9 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Thu, 9 Nov 2023 19:33:00 +0100
Subject: [PATCH] create talisman command

---
 bind.sty      |  1 +
 magic.sty     | 16 ++++++++++++++++
 talismans.sty | 35 +++++++++++++++++++++++++++++++++++
 test.tex      | 11 +++++++++++
 4 files changed, 63 insertions(+)
 create mode 100644 talismans.sty

diff --git a/bind.sty b/bind.sty
index 58dc8424..b522656a 100644
--- a/bind.sty
+++ b/bind.sty
@@ -4,6 +4,7 @@
 \RequirePackage{config/csCommands}
 \RequirePackage{config/seasons}
 \RequirePackage{config/magic}
+\RequirePackage{config/talismans}
 \RequirePackage{config/loot}
 \RequirePackage{config/arms}
 \RequirePackage{config/stats}
diff --git a/magic.sty b/magic.sty
index 9246e5a9..11bfd31a 100644
--- a/magic.sty
+++ b/magic.sty
@@ -179,3 +179,19 @@
   }
 }
 
+\newcommand\showTalisman{
+  \addtocounter{castingBonus}{7}%
+  \paragraph{\spellName}
+  \spellSum
+
+  Resisted by: \spellResistance\ (\tn[\arabic{castingBonus}])
+
+  \spellNotes
+}
+
+\newcommand\talisman[7]{%
+  \calcSpell{#1}{#2}{#3}{#4}{#5}{#6}{#7}%
+  \index{Talismans!#1}
+  \showTalisman
+}
+
diff --git a/talismans.sty b/talismans.sty
new file mode 100644
index 00000000..b4e12c5d
--- /dev/null
+++ b/talismans.sty
@@ -0,0 +1,35 @@
+\newcommand\scrollOfFriendship{
+  \talisman{Scroll of Friendship}% Name
+    {duplicated,detailed}% Enhancements
+    {warp}% Action
+    {Fire,Air}% Spheres
+    {\roll{Wits}{Vigilance}}% Resistance
+    {The scroll, once burnt, creates \arabic{spellTargets} copies of the illusionist, all around them.}% Summary
+    {}% Details
+}
+
+\newcommand\bloodCandle{
+  \talisman{Blood Candle}% Name
+    {duplicated}% Enhancements
+    {Wax}% Action
+    {Air,Water}% Spheres
+    {Ambient noise}% Resistance
+    {Once lit, the frozen blood around the outside of the candle begins to melt, and `bleed'.
+    If the room remains quiet, everyone present regains \showDam~\glspl{fp}.}% Summary
+    {}% Details
+}
+
+\newcommand\minersWeed{
+  \talisman{Miner's Tobacco}% Name
+    {}% Enhancements
+    {Warp}% Action
+    {Air}% Spheres
+    {Wind speed}% Resistance
+    {Once lit in a burning pipe, the tobacco produces a bubble of immovably stagnant air around it.
+    Projectiles shot at the user receive a -\arabic{spellPlusTwo} penalty, and the user can resist the effects of any gasses with a +\arabic{spellPlusTwo} Bonus.}% Summary
+    {
+
+    The tobacco has enough for \stepcounter{r3}\arabic{r3} uses, each of which lasts for around 10 minutes.
+    }% Details
+}
+
diff --git a/test.tex b/test.tex
index 93a66f75..30351fa5 100644
--- a/test.tex
+++ b/test.tex
@@ -290,6 +290,17 @@ This section is non-verbose, so only basic stats are shown.
 
 \end{multicols}
 
+\section{Talismans}
+
+\begin{multicols}{2}
+
+\scrollOfFriendship
+
+\bloodCandle
+
+\minersWeed
+
+\end{multicols}
 
 %%%%% Test Character Sheet
 
-- 
GitLab