From 04df48ba05649ccb13ef8bde9207c87ca8b739b7 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Fri, 3 May 2024 23:14:42 +0200
Subject: [PATCH] show weight carried on genExample characters

---
 docs.tex  | 31 ++++++++++++++++++++-----------
 stats.sty |  5 ++++-
 2 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/docs.tex b/docs.tex
index c580d99a..7cef9f8d 100644
--- a/docs.tex
+++ b/docs.tex
@@ -31,8 +31,6 @@ The next one might look like this:
 
 \dragon
 
-\showNumbers
-
 If you find it hard to tell the difference between all the dragons, you can give them names in square brackets with the \verb"npc command", like this:
 
 \verb"dragon[\npc{\M}{Bob the dragon}]"
@@ -69,8 +67,6 @@ Individual characters can be created by using the \verb"\npc" command then the \
 
 \end{verbatim}
 
-\set{wounds}{1}
-
 \Person{\npc{\M}{Alice}}%
   {{0}{1}{-1}}% BODY
   {{2}{0}{0}}% MIND
@@ -96,22 +92,35 @@ You can set an example chapter by writing \verb"\settoggle{genExamples}{true}"
 
 Then the \verb"\humansoldier" command turns from this:
 
-\set{wounds}{2}
-
 \humansoldier
 
-\showNumbers
-
 \ldots into this:
 
 \settoggle{genExamples}{true}
 
 \humansoldier
 
-\showNumbers
-
 This second soldier is still random, but note the loot they carry has changed into a roll.
 
+We can also add wounds, like this:
+
+\begin{verbatim}
+
+\set{wounds}{3}
+
+\humansoldier
+
+\end{verbatim}
+
+This means the creature has lost three \glspl{hp}.
+That amount of lost \glspl{hp} generally means the \gls{weight} of all their items has become too high, which means they suffer penalties to their \glspl{ap} and Attack score.
+
+\togglefalse{genExamples}
+
+\set{wounds}{3}
+
+\humansoldier
+
 And finally, we have swarms:
 
 \swarm[\flight]{Stirges}{5}{1}{3}{1}
@@ -328,7 +337,7 @@ The \verb"\weapon{Name}{1}{2}" command works in 2 ways.
 When defining a weapon, it adjusts the current creature's stats.
 When used in a weapons chart, it shows the weapon's stats.
 
-Stats are derives from the weapon's 3 properties: length, sharpness, and weight.
+Stats are derives from the weapon's 3 properties: length, sharpness, and \gls{weight}.
 
 \begin{verbatim}
   \weapon{Sword}% NAME
diff --git a/stats.sty b/stats.sty
index b118497d..88d623de 100644
--- a/stats.sty
+++ b/stats.sty
@@ -891,7 +891,10 @@
         MP \arabic{mp},
       \fi%
       \ifnum\value{sp}>0%
-      SP \arabic{sp},
+      SP \arabic{sp}, %
+      \fi%
+      \ifnum\value{weight}>0%
+      \Glsentrytext{weight}~\arabic{weight},%
       \fi%
     }{%
       \par%
-- 
GitLab