Skip to content

Commit

Permalink
Shopkeepers will vocally refuse to buy stenchy items (but it will rev…
Browse files Browse the repository at this point in the history
…eal the stench property in the process).
  • Loading branch information
elunna committed Oct 13, 2023
1 parent 604c877 commit d7d0e3d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/shk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d7d0e3d

Please sign in to comment.