From 3d9770041b521e1964ecc1d7f8581f7f89240454 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Fri, 2 Aug 2024 08:06:27 +0200 Subject: [PATCH] fix \npcQuote --- layout.sty | 3 ++- stats.sty | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/layout.sty b/layout.sty index 6ed64f1f..8424e31f 100644 --- a/layout.sty +++ b/layout.sty @@ -840,7 +840,8 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west) \newcommand{\name}{} \newcommand{\NPCdescription}{} -\newcommand{\npcQuote}{} +\newcommand{\currentQuote}{} +\newcommand\npcQuote[1]{\renewcommand\currentQuote{#1}} \newcommand{\mannerism}{} \newcommand{\npcGoal}{} \newcommand{\npcsymbol}{\adfast{\value{r4}}} diff --git a/stats.sty b/stats.sty index d01b2974..ba754957 100644 --- a/stats.sty +++ b/stats.sty @@ -42,8 +42,9 @@ \textbf{Description:}~\NPCdescription\nobreak% \par% \textbf{Wants:}~\npcGoal% - \ifdefempty{\npcQuote}{}{\par% - \textbf{Quote:}~\textit{``\npcQuote''}% + \ifdefempty{\currentQuote}{}{\par% + \textbf{Quote:}~\textit{``\currentQuote''}% + \renewcommand\currentQuote{}% }% \par% \textbf{Mannerism:}~\mannerism% -- GitLab