From 65ec88289f3e2487ca25233309a571dc686e3da3 Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Mon, 20 Nov 2023 23:04:07 +0100 Subject: [PATCH] allow goblin loot outside genExamples --- loot.sty | 77 +++++++++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/loot.sty b/loot.sty index 93d70656..4e3721e3 100644 --- a/loot.sty +++ b/loot.sty @@ -8,46 +8,43 @@ \setcounter{goblinLoot}{\value{r4}} \newcommand{\lootGoblin}{% - \iftoggle{genExamples}{no loot}% - {% - \ifnum\value{goblinLoot}>13% - \setcounter{goblinLoot}{0}% - \else% - \stepcounter{goblinLoot}% - \fi% - \ifcase\value{goblinLoot}\relax% - \stepcounter{r4}% - tinder box and \arabic{r4} candles% - \or% - 1 \gls{sp} from the far North% - \or% - pouch of long, humanoid hair% - \or% - rotten mushrooms% - \or% - flask of lantern oil% - \or% - leather pouch filled with colorful egg shells% - \or% - small torch% - \or% - small shaker filled with dried beans% - \or% - a horse's tail% - \or% - lump of clay with an ex-lover's bitemarks% - \or% - polished sphere of snow-white quartz% - \or% - tinder box% - \or% - ratking shaul% - \or% - 1 \gls{gp} from the far East% - \else% - empty wine bottle filled with dead spiders% - \fi% - }% + \ifnum\value{goblinLoot}>13% + \setcounter{goblinLoot}{0}% + \else% + \stepcounter{goblinLoot}% + \fi% + \ifcase\value{goblinLoot}\relax% + \stepcounter{r4}% + tinder box and \arabic{r4} candles% + \or% + 1 \gls{sp} from the far North% + \or% + pouch of long, humanoid hair% + \or% + rotten mushrooms% + \or% + flask of lantern oil% + \or% + leather pouch filled with colorful egg shells% + \or% + small torch% + \or% + small shaker filled with dried beans% + \or% + a horse's tail% + \or% + lump of clay with an ex-lover's bitemarks% + \or% + polished sphere of snow-white quartz% + \or% + tinder box% + \or% + ratking shaul% + \or% + 1 \gls{gp} from the far East% + \else% + empty wine bottle filled with dead spiders% + \fi% } \newcommand{\lootSmall}{% -- GitLab