From bbd1238d23a9a953c278c4ab6c56c8b5494c8915 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Wed, 24 Apr 2024 01:20:11 +0200
Subject: [PATCH] allow automatic multiple mutations

---
 stats.sty | 44 ++++++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/stats.sty b/stats.sty
index 5858fc7c..bb26fb3f 100644
--- a/stats.sty
+++ b/stats.sty
@@ -1131,24 +1131,28 @@
 
 %%%%%%%%%%%%%%%%%%%%% Magic Path
 \newcommand{\Spheres}[1]{ \\
-	\raggedright \ent{Spheres} & #1
-}
-
-\newcommand\mutation[1]{%
-  \ifcase\value{#1}\relax%
-    \hide{\value{r3}}%
-  \or%
-    \teeth%
-  \or%
-    \claws%
-  \or%
-    \venom%
-  \or%
-    \tentacles%
-  \or%
-    \web%
-  \else%
-    \flight%
-  \fi%
-  \stepcounter{#1}%
+  \raggedright \ent{Spheres} & #1
+}
+
+\newcommand\mutation[2][1]{%
+  \Repeat{#1}{%
+    \ifcase\value{#2}\relax%
+      \hide{\value{r3}}%
+    \or%
+      \teeth%
+    \or%
+      \claws%
+    \or%
+      \venom%
+    \or%
+      \amphibious%
+    \or%
+      \tentacles%
+    \or%
+      \web%
+    \else%
+      \flight%
+    \fi%
+    \stepcounter{#2}%
+  }%
 }
-- 
GitLab