From da8f191374a846f6668065e23515491ef9a348e3 Mon Sep 17 00:00:00 2001
From: Malin Freeborn <malinfreeborn@posteo.net>
Date: Fri, 4 Oct 2024 20:00:53 +0200
Subject: [PATCH] note where some market items are illegal

---
 market.sty         |  4 +---
 markets/bailey.tex |  3 +++
 markets/town.tex   | 25 ++++++++++++++-----------
 3 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/market.sty b/market.sty
index 436ceaf..b7ddd77 100644
--- a/market.sty
+++ b/market.sty
@@ -34,9 +34,7 @@
 
 \newcommand\rareMarketItem[4][9]{%
   \randomize%
-  \ifnum\value{r12}>#1%
-    \marketItem{#2}{#3}{#4}%
-  \fi%
+  \ifnumcomp{\value{r12}}{>}{#1}{\marketItem{#2}{#3}{#4}}{}%
 }
 
 \newcommand\showArmourPrice[2]{%
diff --git a/markets/bailey.tex b/markets/bailey.tex
index 82a8b4d..a35e009 100644
--- a/markets/bailey.tex
+++ b/markets/bailey.tex
@@ -18,6 +18,9 @@ Farmers chat, then barter, and finally refer the buyer to a neighbour.
 \composeHumanName, the archer & \mkPrice{1} per mile \\
 
 \composeHumanName, local guide & \mkPrice[cp]{50} per mile \\
+\ifodd\value{diceNo}\else
+  Boat-ride with \composeHumanName\ (free for \glspl{guard}) & \mkPrice[cp]{6} per mile \\
+\fi
 
 \end{boxtable}
 
diff --git a/markets/town.tex b/markets/town.tex
index fc380b4..4ae45d1 100644
--- a/markets/town.tex
+++ b/markets/town.tex
@@ -44,7 +44,6 @@
     \marketItem{Cup of tea}{0}{0}%
   \end{nametable}
   \setcounter{track}{\value{r12}}
-  \multiply\value{track} by 2%
   \addtocounter{track}{\value{rn4tn1}}
   \footnotesize She'll purchase any \glsentrytext{ingredient} for \arabic{track}~\glsfmtplural{sp}.
 \end{minipage}
@@ -74,23 +73,27 @@
   New song composition & \mkPrice{4}/ song \\
 
   \ifodd\value{r4b}%
-    \tiny\composeHumanName, the Fence & \tiny 50\% and shhh\ldots \\
+    \tiny\composeHumanName, the Fence\footnotemark[1]  & \tiny 50\% and shhh\ldots \\
   \fi%
 
 \end{nametable}
 
+\footnotetext{This item is illegal, and requires a \roll{Charisma}{Empathy} roll (\tn[10]), to gain trust along the line of people who lead to the real seller.
+The item requires one \glsfmttext{interval} to speak to everyone along the way.}
+
 \renewcommand\npcsymbol{\flourish}
-\begin{nametable}[Xcc]{At the Docks}
+\begin{nametable}[Lcc]{At the Docks}
 
   \textbf{Items} & \textbf{\Glsentrytext{weight}} & \textbf{Cost} \\\hline
+  \rareMarketItem{Griffin feathers Air \Glsentrytext{ingredient}\footnotemark[1]}{1}{13}%
+  \rareMarketItem{Bear's heart Fire \Glsentrytext{ingredient}\footnotemark[1]}{1}{13} %
+  \ifnum\value{temperature}=0\rareMarketItem{\Glsentrytext{basilisk} hide Earth \Glsentrytext{ingredient}\footnotemark[1]}{1}{13}\fi %
+  \rareMarketItem{\Glsentrytext{woodspy} beak Water \Glsentrytext{ingredient}\footnotemark[1]}{1}{13} %
+  \rareMarketItem{\ifnum\value{temperature}=0 Human blood from the \glsentrytext{court}\else Brown ooze\fi Fate \Glsentrytext{ingredient}\footnotemark[1]}{1}{14}
+
+  Lock-pick set\footnotemark[1] & 1 & \mkPrice{10} \\
+  Fake \glsfmtplural{fodder} town-pass\footnotemark[1] & 0 & \mkPrice{4} \\
 
-  Lock-pick set & 1 & \mkPrice{10} \\
-  Fake \glsfmtplural{fodder} town-pass & 0 & \mkPrice{4} \\
-  \rareMarketItem{Air \Glsentrytext{ingredient}}{1}{13}%
-  \rareMarketItem{Fire \Glsentrytext{ingredient}}{1}{13}%
-  \rareMarketItem{Earth \Glsentrytext{ingredient}}{1}{13}%
-  \rareMarketItem{Water \Glsentrytext{ingredient}}{1}{13}%
-  \rareMarketItem{Fate \Glsentrytext{ingredient}}{1}{14}%
 \end{nametable}
 
 \renewcommand\npcsymbol{\glsentrysymbol{yonder}}
@@ -151,7 +154,7 @@
   Rat Soup & \mkPrice[cp]{2} \\
 
   \ifodd\value{r4b}%
-    \tiny\composeHumanName, the Fence & \tiny 50\% and shhh\ldots \\
+    \tiny\composeHumanName, the Fence\footnotemark[1] & \tiny 50\% and shhh\ldots \\
   \fi%
 \end{nametable}
 
-- 
GitLab