From a4c7d98e67672ebd878aeca32291e659952659f2 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Thu, 24 Aug 2023 23:01:26 +0200
Subject: [PATCH] show equipment only when present

---
 monsters.sty | 4 +---
 stats.sty    | 7 ++++++-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/monsters.sty b/monsters.sty
index 63b51cc4..265cf2d9 100644
--- a/monsters.sty
+++ b/monsters.sty
@@ -218,9 +218,7 @@
           Water 1
         \fi
       \fi
-  }}{%
-	\iftoggle{bestiarychapter}{$3D6\times 100$gp, sitting in a lair.}{%
-		{\setcounter{gold}{\thepage}\addtocounter{gold}{-50}\multiply\value{gold} by \value{list}\multiply\value{gold} by \thechapter \ifnumcomp{\value{gold}}{>}{0}{\arabic{gold}gp in lair in assorted change}{None}}}}%
+  }}{}%
 	{\ifodd\value{r2}%
 	\setcounter{gold}{\value{r3b}}\multiply\value{gold} by 3%
 	\addtocounter{gold}{\value{int}}%
diff --git a/stats.sty b/stats.sty
index d60440fb..2fdbbcd5 100644
--- a/stats.sty
+++ b/stats.sty
@@ -640,7 +640,12 @@
   }{}
 
 	\iftoggle{mind}%
-    {\ent{Equipment} & \equipment \\}%
+    {%
+    \ifdefempty{\equipment}{}
+    {
+      \ent{Equipment} & \equipment \\
+    }
+    }%
     {\ent{Abilities} & \abilities \\}
 
   \ifdefempty{\abilities}{}%
-- 
GitLab