From 9f22bb6a91b7bb791f6a921eb6ea74d41db71e5d Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Sun, 19 Nov 2023 20:45:29 +0100 Subject: [PATCH] add Combat Rating acronym --- glossary.tex | 7 +++++++ stats.sty | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/glossary.tex b/glossary.tex index f5878252..beb196c9 100644 --- a/glossary.tex +++ b/glossary.tex @@ -226,6 +226,13 @@ prefix={an\space}, ]{xp}{XP}{Experience Point} +\newacronym[ + description={gives a rough estimate of the creature's combat abilities}, + shortplural={CRs}, + prefix={a\space}, + nonumberlist, + ]{cr}{CR}{Combat Rating} + \newacronym[ description={-- one of the characters run by the people playing the game}, prefix={a\space}, diff --git a/stats.sty b/stats.sty index 444d618e..6f0aafd3 100644 --- a/stats.sty +++ b/stats.sty @@ -781,12 +781,12 @@ { \ifnumcomp{\value{xp}}{<}{73}% {\ifnumcomp{\value{xp}}{<}{40}% - {\arabic{xpbonus} XP}{$\frac{1}{2}$ XP}}% + {\glsentrytext{cr}: \arabic{xpbonus}}{\glsentrytext{cr} $\frac{1}{2}$}}% { \addtocounter{xp}{-60}% \divide\value{xp} by 13% \addtocounter{xp}{\value{xpbonus}}% - \arabic{xp} XP% + \glsentrytext{cr}: \arabic{xp}% }% % if the creature has a mind, print fate points (if any). % -- GitLab