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

reformat talismans

parent 98757d44
No related branches found
No related tags found
No related merge requests found
...@@ -81,43 +81,33 @@ ...@@ -81,43 +81,33 @@
} }
\newcommand{\lootMagic}{% \newcommand{\lootMagic}{%
\ifnum\value{noAppearing}>1% \iftoggle{verbose}{
Mana stone holding 2 MP% \ifnum\value{noAppearing}>1%
\else% Mana stone holding 2 MP%
\iftoggle{genExamples}{}% \else%
{% \iftoggle{genExamples}{}%
\stepcounter{treasure}% {%
\ifnum\value{treasure}>10\setcounter{treasure}{0}\fi% \ifnum\value{treasure}>10\setcounter{treasure}{0}\fi%
\ifcase\value{treasure}\relax% \ifcase\value{treasure}\relax%
Sorcerer's Eye\index{Magical Item!Sorcerer's Eye}% \scrollOfFriendship%
\or%1 \or%1
quiver with \arabic{r12} Spider Arrows\index{Magical Item!Spider Arrows}% \bloodCandle%
\or%2 \or%2
pouch of Wild Seeds\index{Magical Item!Wild Seeds}% \minersWeed%
\or%3 \or%3
Bag of Holding\index{Magical Item!Bag of Holding}% \oceanPhial%
\or%4 \or%4
Defensive Heart\index{Magical Item!Defensive Heart}% \hagFinger%
\or%5 \else%11
Portal Scroll\index{Magical Item!Portal Scroll}% \homeScroll%
\or%6 \fi%
Sleeping Dust\index{Magical Item!Sleeping Dust}% \setcounter{track}{\value{treasure}}%
\or%7 \stepcounter{treasure}%
Ring of Asphyxiation\index{Magical Item!Ring of Asphyxiation}% }%
\or%8 \fi%
Ghost Shield\index{Magical Item!Ghost Shield}% }{}
\or%9
Bag of Tricks\index{Magical Item!Bag of Tricks}%
\or%10
Taming Flute\index{Magical Item!Taming Flute}%
\else%11
Mana Stone with 4 \glspl{mp}%
\fi%
}%
\fi%
} }
\newcommand{\lootJewellery}{% \newcommand{\lootJewellery}{%
\iftoggle{genExamples}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$\glspl{gp}\fi}% \iftoggle{genExamples}{jewellery worth \ifodd\value{r2}$3D6$sp\else$1D6+2$\glspl{gp}\fi}%
{% {%
......
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
\settoggle{distant}{false} \settoggle{distant}{false}
\newtoggle{duplicated} \newtoggle{duplicated}
\settoggle{duplicated}{false} \settoggle{duplicated}{false}
\newtoggle{opposedSpell}
\settoggle{opposedSpell}{false}
\newcommand\calcSpell[7]{% \newcommand\calcSpell[7]{%
...@@ -99,9 +100,10 @@ ...@@ -99,9 +100,10 @@
}{% }{%
\addtocounter{castingBonus}{\value{Charisma}}% \addtocounter{castingBonus}{\value{Charisma}}%
}% }%
\renewcommand\spellResistance{#5} \renewcommand\spellResistance{#5}%
\renewcommand\spellSum{#6} \ifdefmacro{#5}{\toggletrue{opposedSpell}}{\togglefalse{opposedSpell}}%
\renewcommand\spellNotes{#7} \renewcommand\spellSum{#6}%
\renewcommand\spellNotes{#7}%
\setRange% \setRange%
\multiply\value{spellTargets} by \value{spellCost}% \multiply\value{spellTargets} by \value{spellCost}%
\multiply\value{spellTargets} by \value{spellCost}% \multiply\value{spellTargets} by \value{spellCost}%
...@@ -185,20 +187,34 @@ ...@@ -185,20 +187,34 @@
} }
\newcommand\showTalisman{ \newcommand\showTalisman{
\addtocounter{castingBonus}{7}% \iftoggle{creatureBox}{%
\paragraph{\spellName} \spellName\ talisman%
\spellSum \setcounter{track}{\value{treasure}}%
}{%
\paragraph{\spellName}%
\spellSum
Resisted by: \spellResistance\ (\tn[\arabic{castingBonus}]) \spellNotes
\iftoggle{opposedSpell}{
\addtocounter{castingBonus}{7}
Resisted by: \spellResistance\ (\tn[\arabic{castingBonus}])
}{
\spellNotes Roll: \absNum{castingBonus}, \gls{tn} set by \spellResistance.
}%
}%
} }
\newcommand\talisman[7]{% \newcommand\talisman[7]{%
\toggletrue{talisman} \setcounter{Charisma}{0}%
\calcSpell{#1}{#2}{#3}{#4}{#5}{#6}{#7}% \calcSpell{#1}{#2}{#3}{#4}{#5}{#6}{#7}%
\index{Talismans!#1} \index{Talismans!#1}%
\setcounter{castingBonus}{\value{spellCost}}%
\showTalisman \showTalisman
\togglefalse{talisman} \togglefalse{talisman}
} }
\newcommand\explainTalisman{%
\setcounter{treasure}{\value{track}}%
\lootMagic%
}
...@@ -33,3 +33,45 @@ ...@@ -33,3 +33,45 @@
}% Details }% Details
} }
\newcommand\oceanPhial{
\talisman{Ocean's Phial}% Name
{duplicated,distant}% Enhancements
{Wax}% Action
{Water}% Spheres
{stagnant water}% Resistance
{
Drop it in any large body of water, and watch the water whirl!
Anyone in or near the water gets dragged down or thrown back, unless they pass a \roll{Strength}{Athletics} check,
\setcounter{tn}{7}\addtocounter{tn}{\value{spellCost}}%
\tn.
}% Summary
{
The phial will take a -3 penalty for use next to small bodies of water, such as puddles, or a +3 Bonus when used on people \emph{inside} a raging river.
}% Details
}
\newcommand\hagFinger{
\talisman{Hag's Finger}% Name
{detailed}% Enhancements
{Wane}% Action
{Water}% Spheres
{\roll{Charisma}{Stealth}}% Resistance
{
Point the mummified finger at a cretin, then crack the finger's knuckle till it breaks.
The cretin will suffer \arabic{spellPlusTwo} encounters before the next day's light.
}% Summary
{}% Details
}
\newcommand\homeScroll{
\talisman{Home Scroll}% Name
{detailed,distant,duplicated}% Enhancements
{Warp}% Action
{Earth,Fire}% Spheres
{movement, such as wind}% Resistance
{
This scroll searches for somewhere windless and calm, around a day's walk, and then opens a rift in space to that location.
}% Summary
{}% Details
}
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