From d7d0e3d31d4a2bcb583b920a72a648b510b49f87 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Fri, 13 Oct 2023 10:32:02 +0200 Subject: [PATCH] Shopkeepers will vocally refuse to buy stenchy items (but it will reveal the stench property in the process). --- src/shk.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/shk.c b/src/shk.c index 06e2d2cfb..6b17f1d6e 100644 --- a/src/shk.c +++ b/src/shk.c @@ -3619,6 +3619,20 @@ xchar x, y; offer = ltmp + cltmp; + if (obj->oprops & ITEM_STENCH) { + switch (rnd(3)) { + case 1: + verbalize("I'm not buying that stinky thing!"); + break; + case 2: + verbalize("Your %s smells, get it out of here!", xname(obj)); + break; + case 3: + verbalize("Ugh, what stench you bring."); + break; + } + obj->oprops_known |= ITEM_STENCH; + } /* get one case out of the way: nothing to sell, and no gold */ if (!(isgold || cgold) && ((offer + gltmp) == 0L || sell_how == SELL_DONTSELL)) {