From f0cb3810977442e69af46c02fb9f0a5a2b9589d3 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Thu, 26 Jan 2023 04:18:52 +0100 Subject: [PATCH] only show fp when required --- stats.sty | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/stats.sty b/stats.sty index 6fe6e43a..5ce65e1d 100644 --- a/stats.sty +++ b/stats.sty @@ -505,26 +505,25 @@ \addtocounter{xp}{-350} \multiply\value{mp} by 100 \addtocounter{xp}{\value{mp}} - \ifnumcomp{\value{xp}}{<}{120}{\ifnumcomp{\value{xp}}{>}{100}{$1/2$ XP}{$1/3$}}{% - \divide\value{xp} by 120% - \addtocounter{xp}{\value{xpbonus}}% - \arabic{xp} XP}% + \ifnumcomp{\value{xp}}{<}{120}% + {\ifnumcomp{\value{xp}}{>}{100}% + {$1/2$ XP}{$1/3$ XP}}% + { + \divide\value{xp} by 120% + \addtocounter{xp}{\value{xpbonus}}% + \arabic{xp} XP + }% % if {mind} print fate points. % - \iftoggle{examplecharacter}{}{ - \iftoggle{mind}% - {\addtocounter{fp}{\value{cha}} - \ifnum\value{fp}>0% - \arabic{fp}~FP % - \iftoggle{bestiarychapter}% - {}% - {\Repeat{\value{fp}}{\ding{111}}} - \fi - }{} + \iftoggle{examplecharacter}{} + {\iftoggle{mind}% + {\addtocounter{fp}{\value{cha}}% + \ignorespaces, \arabic{fp}~FP % + \iftoggle{bestiarychapter}% + {}% + {\Repeat{\value{fp}}{\ding{111}}}% + }{}% } - - \vspace{.1cm} - } % %%%%%%%%%%%%%%%%%%%% Creature Abilities -- GitLab