From 1064f2aa773455c877731e8979967156620c23ee Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Sat, 20 Apr 2024 17:14:31 +0200 Subject: [PATCH] move fp from compute to print --- main.tex | 12 +++++++++--- stats.sty | 11 +---------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/main.tex b/main.tex index 5869721a..ff8adab8 100644 --- a/main.tex +++ b/main.tex @@ -98,10 +98,16 @@ \ifnum\value{mp}>0% , \glsentrytext{mp} \arabic{mp}, % \fi% + \ifnum\value{fp}>0% + , \glsentrytext{fp} \arabic{fp}, % + \fi% }{% - \par - \showBoxes - } + \par% + \showBoxes% + \ifnum\value{noAppearing}=1% + \par\glsentrytext{fp}~\boxStat{fp}% + \fi% + }% } \end{exampletext} } diff --git a/stats.sty b/stats.sty index 48a63756..5d5d4a02 100644 --- a/stats.sty +++ b/stats.sty @@ -705,6 +705,7 @@ \divide\value{dr} by 2% \addtocounter{dr}{\value{armourDR}}% }% + \addtocounter{fp}{\value{Charisma}}% } \newcommand\computeEncumbrance{% @@ -836,16 +837,6 @@ \addtocounter{xp}{\value{xpbonus}}% \renewcommand\showCR{\arabic{xp}}% }% - % if the creature has a mind, print fate points (if any). - % - \ifnum\value{fp}>3% - \addtocounter{fp}{\value{Charisma}}% - \ignorespaces\arabic{fp}~\glsentrytext{fp}% - \iftoggle{genExamples}% - {}% - {~\boxStat{fp}}% - \par% - \fi% }% } -- GitLab