From f2bdb4e628b56594a08a04e1378351a41373f796 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Tue, 23 Apr 2024 08:05:55 +0200
Subject: [PATCH] detect weapon use for Combat Skill

---
 stats.sty | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/stats.sty b/stats.sty
index 90699802..a3ca213f 100644
--- a/stats.sty
+++ b/stats.sty
@@ -791,10 +791,8 @@
   \setcounter{hp}{6}%
   \addtocounter{hp}{\value{Strength}}%
   % Stats for allies don't need to show Combat +1 as 'TN 8 to hit', they just need to show '+1'.
-  \ifnum\value{Combat}>\value{Brawl}\else\setcounter{att}{\value{Brawl}}\fi%
-  \iftoggle{allyCharacter}{}{%
-    \addtocounter{att}{7}%
-  }%
+  \ifnum\value{weaponBonus}>0\set{att}{Combat}\else\set{att}{Brawl}\fi%
+  \addtocounter{att}{7}%
   \setcounter{ap}{\value{Speed}}%
   \addtocounter{ap}{3}%
   \addtocounter{ap}{-\value{encumbrance}}%
@@ -1054,8 +1052,8 @@
 }
 
 \newcommand{\claws}{%
-  \ifnum\value{Combat}>\value{Brawl}\else%
-    \stepcounter{damage}%
+  \ifnum\value{weaponDamage}<1%
+    \stepcounter{weaponDamage}%
   \fi%
   \addAbility{claws (+1~Damage)}%
 }
@@ -1117,7 +1115,7 @@
   \addtocounter{track}{\value{Strength}}%
   \addtocounter{track}{\value{Dexterity}}%
   \ifnum\value{track}<2\setcounter{track}{2}\fi%
-  \addtocounter{enc}{\value{track}}%
+  \set{enc}{track}%
   \roundUp{enc}%
   \addAbility{\arabic{track}~tentacles (grapple up to \arabic{enc} opponents without going prone)}%
 }
-- 
GitLab