From 4ea4c1ee5ba92aa6ea0b75e37cdda60413feeeab Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Tue, 10 Sep 2024 17:03:44 +0200
Subject: [PATCH] give thieves throwing knives

---
 monsters.sty | 8 ++++++--
 test.tex     | 6 ++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/monsters.sty b/monsters.sty
index e617381e..d0206ee4 100644
--- a/monsters.sty
+++ b/monsters.sty
@@ -683,6 +683,7 @@
       \fi
       \set{Melee}{r2c}
       \set{Brawl}{r2b}
+      \set{Projectiles}{rn1t2}
       \set{Survival}{rn1t2}
       \set{Stealth}{rn3t3}
       \set{Larceny}{r2}
@@ -700,12 +701,15 @@
     \else%
       \perfectsneakattack%
     \fi, %
-    \ifnum\value{noAppearing}>2%
+    \ifnum\value{noAppearing}=1%
       \adrenalinesurge%
     \else%
       \lucky%
     \fi}% KNACKS
-    {dagger, \rations, \lootSmall}% EQUIPMENT
+    {dagger, \ifnum\value{Projectiles}>0%
+      \arabic{r4}~throwing knives, %
+    \fi%
+    \rations, \lootSmall}% EQUIPMENT
     {}% ABILITIES
 }
 
diff --git a/test.tex b/test.tex
index 900bef7e..d2807705 100644
--- a/test.tex
+++ b/test.tex
@@ -170,6 +170,8 @@ This section is non-verbose, so only basic stats are shown.
 
 \humanthief
 
+\humanthief
+
 \humanalchemist
 
 \necromancer
@@ -618,6 +620,10 @@ Words are needed after each subsection to avoid the boxes making problems.
 
 \humanbard
 
+\humanthief
+
+\humanthief
+
 \lipsum[2]
 
 \boxPair[t]{
-- 
GitLab