From 48719ced9607f0f4897f3a1e5fe554c8e09dbecf Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Tue, 23 Apr 2024 00:56:10 +0200 Subject: [PATCH] fix attribute presentation --- stats.sty | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/stats.sty b/stats.sty index 8a97c8b2..aae486dc 100644 --- a/stats.sty +++ b/stats.sty @@ -709,29 +709,17 @@ %% print the equipment % \newcommand{\creaturestats}{ - -% Reference versions (which always are non-verbose) don't -% have the space for full-sized stats. - -\footnotesize -\begin{tabularx}{\textwidth}{lr@{\hskip 3em}lr@{\hskip 3em}lr} - -% the tcolorbox has coloured rows (xcolor package) -% but that doesn't work with creature stats, so we suppress it here -\hiderowcolors - - Strength & \arabic{Strength} & Dexterity & \arabic{Dexterity} & Speed & \arabic{Speed} \\ -\iftoggle{mind}{ - Intelligence & \arabic{Intelligence} & Wits & \arabic{Wits} & Charisma & \arabic{Charisma} \\}{% - && Wits & \arabic{Wits} - & - \ifnum\value{Charisma}>0 - Charisma & \arabic{Charisma} - \fi - \\ - } - -\end{tabularx} + \footnotesize + \begin{tabularx}{\textwidth}{lr@{\hskip 3em}lr@{\hskip 3em}lr} + \hiderowcolors + Strength & \arabic{Strength} & Dexterity & \arabic{Dexterity} & Speed & \arabic{Speed} \\ + \ifnum\value{Intelligence}>-6 Intelligence\fi & + \ifnum\value{Intelligence}>-6 \arabic{Intelligence}\fi & + Wits & \arabic{Wits} & + \ifnum\value{Charisma}>-6 Charisma\fi & + \ifnum\value{Charisma}>-6 \arabic{Charisma}\fi + \\ + \end{tabularx} } \newcommand\skillsEtc{ -- GitLab