From 9b99b4374b81c03b9882962863047aeae8e5da9b Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Tue, 5 Dec 2023 21:43:54 +0100 Subject: [PATCH] fix CR display --- stats.sty | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stats.sty b/stats.sty index 550cefdc..bc47bfad 100644 --- a/stats.sty +++ b/stats.sty @@ -59,6 +59,7 @@ \newcommand{\skills}{} \newcommand{\equipment}{} \newcommand{\mods}{} +\newcommand\showCR{} \newcommand\absNum[1]{\ifnum\value{#1}>0+\fi\ifnum\value{#1}=0\else\arabic{#1}\fi} @@ -735,6 +736,7 @@ }% \iftoggle{allyCharacter}{}{ \calculateXP% + \outline{\glsentrytext{cr}: \showCR} }% \end{center}% } @@ -781,12 +783,12 @@ { \ifnumcomp{\value{xp}}{<}{73}% {\ifnumcomp{\value{xp}}{<}{40}% - {\glsentrytext{cr}: \arabic{xpbonus}}{\glsentrytext{cr} $\frac{1}{2}$}}% + {\renewcommand\showCR{\arabic{xpbonus}}}{\renewcommand\showCR{$\frac{1}{2}$}}}% { \addtocounter{xp}{-60}% \divide\value{xp} by 13% \addtocounter{xp}{\value{xpbonus}}% - \glsentrytext{cr}: \arabic{xp}% + \renewcommand\showCR{\arabic{xp}}% }% % if the creature has a mind, print fate points (if any). % -- GitLab