From a8a8d1370b2c9e9574d8a5d0f966902bdfc2100a Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Tue, 31 Dec 2024 19:34:22 +0000 Subject: [PATCH] let goblins glow --- loot.sty | 11 +++++++++++ monsters.sty | 9 +++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/loot.sty b/loot.sty index 23a3d27..53a5480 100644 --- a/loot.sty +++ b/loot.sty @@ -88,6 +88,17 @@ \fi% } +\newcommand\goblinLight{% + \ifcase\value{r3}\relax% + glowing belly from eating \glsfmtplural{glowshroom}% + \or% + shroom-candle% + \else% + fat candle% + \fi% + \stepcounter{r3}% +} + \newcommand{\lootSmall}{% \iftoggle{genExamples}{% \ifodd\value{r2}% diff --git a/monsters.sty b/monsters.sty index 4889cbf..f11da01 100644 --- a/monsters.sty +++ b/monsters.sty @@ -1082,8 +1082,10 @@ \vengeful% \fi}% KNACKS {% - \ifnum\value{noAppearing}<4% + \ifnum\value{noAppearing}<3% \lootGoblin% + \else% + \goblinLight% \fi% }% EQUIPMENT {\ifnum\value{noAppearing}<3 @@ -1117,7 +1119,7 @@ \ifodd\value{r4b}% \lootGoblin% \else% - empty man-sized sack% + \goblinLight% \fi% }% EQUIPMENT {\ifnum\value{noAppearing}<4 @@ -1192,6 +1194,9 @@ \ifnum\value{r4b}=1% \lootGoblin% \fi% + \ifnum\value{noAppearing}<3% + \goblinLight% + \fi% }% EQUIPMENT {\ifnum\value{r3b}=1% \ifnum\value{noAppearing}=1% -- GitLab