From 8cb1d7ff64cd2bab52f78ae5ef3f41d9a4fe82a3 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Tue, 8 Aug 2023 05:18:37 +0200
Subject: [PATCH] make rules charts independent of rules doc

---
 rules.tex        |  6 ++++++
 rules/armour.tex |  1 -
 rules/charts.tex | 32 ++++++++++++++++++++++++++++++++
 rules/skills.tex | 28 ----------------------------
 4 files changed, 38 insertions(+), 29 deletions(-)

diff --git a/rules.tex b/rules.tex
index 69cf3688..3a684f7c 100644
--- a/rules.tex
+++ b/rules.tex
@@ -10,6 +10,10 @@
 \small
 \section*{Binding Rules}
 
+\physicalSkillChart
+
+\mentalSkillChart
+
 \begin{multicols}{2}
 
 \subsection*{Traits}
@@ -41,6 +45,8 @@
 
 \input{rules/armour.tex}
 
+\commonArmourChart
+
 \input{rules/projectiles.tex}
 
 \subsection*{Magic}
diff --git a/rules/armour.tex b/rules/armour.tex
index 1eff2d4c..f0691bac 100644
--- a/rules/armour.tex
+++ b/rules/armour.tex
@@ -12,4 +12,3 @@ Armour provides \gls{dr}, which can protect against Damage, but only if the \gls
   When \glspl{pc} succeed in an Attack roll by \emph{more} than their opponent's Covering, they inflict a Vitals Shot, and ignore the opponent's \gls{dr}.
 \end{itemize}
 
-\commonArmourChart
diff --git a/rules/charts.tex b/rules/charts.tex
index 4190e04b..a31aef5f 100644
--- a/rules/charts.tex
+++ b/rules/charts.tex
@@ -1,3 +1,35 @@
+\newcommand\physicalSkillChart{
+
+  \begin{figure*}[b!]
+  \begin{tabularx}{\linewidth}{X|LLL}
+    \hline
+    & \textbf{Strength} & \textbf{Dexterity} & \textbf{Speed} \\\hline
+    \textbf{Academics} & Orating to a massive crowd & Forgery & Courier Runs \\
+    \textbf{Athletics} & Lifting heavy loads & Climbing & Sprinting \\
+    \textbf{Deceit} & Intimidation & Feigning an injury & Spreading a rumour across an entire town \\
+    \textbf{Stealth} & Hiding in a hay bail & Moving quietly & Escaping into a crowd \\
+    \textbf{Vigilance} & Keeping watch all night & Feeling for an exit in the dark & Searching a full forest for a particular tree \\
+    \textbf{Wyldcrafting} & Wrestling a~boar & Untying a~horse's bridle & Fleeing a stampede \\
+    \hline
+  \end{tabularx}
+  \end{figure*}
+}
+
+\newcommand\mentalSkillChart{
+  \begin{figure*}[b!]
+  \begin{tabularx}{\linewidth}{X|LLL}
+    \hline
+    & \textbf{Intelligence} & \textbf{Wits} & \textbf{Charisma} \\\hline
+    \textbf{Academics} & Recalling facts & Resisting an enchantment spell & Storytelling \\
+    \textbf{Athletics} & Finding the easiest route to climb & Identifying optimal climbing conditions & Stage acrobatics \\
+    \textbf{Deceit} & Crafting a plausible lie & Making a quick excuse & Implausible lies \\
+    \textbf{Stealth} & Identifying the best hiding spot & Quickly hiding & Sleuthing a banquet, uninvited \\
+    \textbf{Vigilance} & Investigating a crime scene & Spotting an illusion spell & Hearing the best gossip \\
+    \textbf{Wyldcrafting} & Planning a new, hidden trail & Foraging for a quick meal & Selling vegetables \\
+    \hline
+  \end{tabularx}
+  \end{figure*}
+}
 
 \newcommand\stackingDamageChart{
   \begin{nametable}[l|YYYYYYYYYY]{Damage Conversion}
diff --git a/rules/skills.tex b/rules/skills.tex
index e146b52b..cb8109a9 100644
--- a/rules/skills.tex
+++ b/rules/skills.tex
@@ -2,31 +2,3 @@
 
 Each skill covers a variety of abilities -- at least one per Attribute.
 
-\begin{figure*}[t!]
-\begin{tabularx}{\linewidth}{X|LLL}
-  \hline
-  & \textbf{Strength} & \textbf{Dexterity} & \textbf{Speed} \\\hline
-  \textbf{Academics} & Orating to a massive crowd & Forgery & Courier Runs \\
-  \textbf{Athletics} & Lifting heavy loads & Climbing & Sprinting \\
-  \textbf{Deceit} & Intimidation & Feigning an injury & Spreading a rumour across an entire town \\
-  \textbf{Stealth} & Hiding in a hay bail & Moving quietly & Escaping into a crowd \\
-  \textbf{Vigilance} & Keeping watch all night & Feeling for an exit in the dark & Searching a full forest for a particular tree \\
-  \textbf{Wyldcrafting} & Wrestling a~boar & Untying a~horse's bridle & Fleeing a stampede \\
-  \hline
-\end{tabularx}
-\end{figure*}
-
-\begin{figure*}[t!]
-\begin{tabularx}{\linewidth}{X|LLL}
-  \hline
-  & \textbf{Intelligence} & \textbf{Wits} & \textbf{Charisma} \\\hline
-  \textbf{Academics} & Recalling facts & Resisting an enchantment spell & Storytelling \\
-  \textbf{Athletics} & Finding the easiest route to climb & Identifying optimal climbing conditions & Stage acrobatics \\
-  \textbf{Deceit} & Crafting a plausible lie & Making a quick excuse & Implausible lies \\
-  \textbf{Stealth} & Identifying the best hiding spot & Quickly hiding & Sleuthing a banquet, uninvited \\
-  \textbf{Vigilance} & Investigating a crime scene & Spotting an illusion spell & Hearing the best gossip \\
-  \textbf{Wyldcrafting} & Planning a new, hidden trail & Foraging for a quick meal & Selling vegetables \\
-  \hline
-\end{tabularx}
-
-\end{figure*}
-- 
GitLab