From 70a43257ac99a312e928dd06139e97364bd0611b Mon Sep 17 00:00:00 2001 From: Malin Freeborn <malinfreeborn@posteo.net> Date: Thu, 26 Oct 2023 20:09:27 +0200 Subject: [PATCH] add goblin loot --- loot.sty | 46 ++++++++++++++++++++++++++++++++++++++++++++++ monsters.sty | 15 ++++++++------- 2 files changed, 54 insertions(+), 7 deletions(-) diff --git a/loot.sty b/loot.sty index 8c975779..da4bccaa 100644 --- a/loot.sty +++ b/loot.sty @@ -4,6 +4,52 @@ %%%%%%%%%%%%%%%%%%%% LOOT %%%%%%%%%%%%%%%%%%%% +\newcounter{goblinLoot} +\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% + }% +} + \newcommand{\lootSmall}{% \iftoggle{genExamples}{% \ifodd\value{r2}% diff --git a/monsters.sty b/monsters.sty index c51d96b0..5d5b95ad 100644 --- a/monsters.sty +++ b/monsters.sty @@ -1129,11 +1129,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v \Dagger% \fi% \fi% -\ifodd\value{r3b}% - \ifnum\value{noAppearing}=1 - , tinder box% - \fi% -\fi% +, \lootGoblin .}% EQUIPMENT { \ifodd\value{r3}\else @@ -1199,7 +1195,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v {\arabic{age}}% AGGRESSION {Projectiles~\arabic{r2}, \ifodd\value{r3} Deceit\else Athletics\fi~\arabic{r3}, Medicine~\arabic{r2}, Stealth~1, Tactics~2 }% SKILLS -{\Dagger\ifodd\value{r4}, torch\fi% +{\Dagger\ifodd\value{r4}, \lootGoblin\fi% \ifnum\value{r4b}=4% , \lootMagic \fi% @@ -1231,7 +1227,12 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v {0}% DR {2}% COMBAT {\ifodd\value{r3b} Athletics~1, \fi Crafts~1, Tactics~\arabic{r2}}% SKILLS -{\ifodd\value{r2b}\shortsword\else\maul\fi, \partialchain}% EQUIPMENT +{ + \ifodd\value{r2b}\shortsword\else\maul\fi, \partialchain% + \ifodd\value{r3}% + , \lootGoblin% + \fi% +}% EQUIPMENT {} } -- GitLab