Skip to content
Snippets Groups Projects
Unverified Commit ac20070f authored by Malin Freeborn's avatar Malin Freeborn
Browse files

make each \lootMagic result unique

parent 13309dce
No related branches found
No related tags found
No related merge requests found
\ProvidesPackage{config/loot}
\newcounter{treasure}
\setcounter{treasure}{\month}
%%%%%%%%%%%%%%%%%%%% LOOT %%%%%%%%%%%%%%%%%%%%
......@@ -34,43 +36,36 @@
\newcommand{\lootMagic}{%
\iftoggle{team}{Mana stone holding 2 MP}%
{\iftoggle{bestiarychapter}{}%
{\ifnumcomp{\value{r2}}{>}{1}%
{\ifodd\value{r3}%
\ifodd\value{r4}%
\ifodd\value{r3b}%
Sorcerer's Eye%
\else%
{\iftoggle{bestiarychapter}{}%
{%
\stepcounter{treasure}%
\ifnum\value{treasure}>10\setcounter{treasure}{0}\fi%
\ifcase\value{treasure}\relax%
Sorcerer's Eye%
\or%1
quiver with \arabic{r12} Spider Arrows%
\or%2
pouch of Wild Seeds%
\or%3
Bag of Holding%
\or%4
Defensive Heart%
\or%5
Portal Scroll%
\or%6
Sleeping Dust%
\or%7
Ring of Asphyxiation%
\or%8
Ghost Shield%
\or%9
Bag of Tricks%
\else%10
Mana Stone with 4 \glspl{mp}%
\fi%
\else%
pouch of Wild Seeds
\fi%
\else%
\ifodd\value{r2b}%
Bag of Holding%
\else%
Defensive Heart%
\fi%
\fi}%
{\ifodd\value{r3}%
\ifodd\value{r4}%
Portal Scroll%
\else%
Sleeping Dust%
\fi%
\else%
\ifodd\value{r2b}%
\ifnum\value{dr}>0%
Ring of Asphyxiation%
\else
Ghost Shield%
\fi%
\else%
Bag of Tricks%
\fi%
\fi}%
}}}
}%
}%
}
\newcommand{\lootJewellery}{%
\iftoggle{bestiarychapter}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$\glspl{gp}\fi}%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment