From: Pasi Kallinen Date: Tue, 22 Dec 2015 19:44:53 +0000 (+0200) Subject: Some shopkeepers are always stingier X-Git-Tag: NetHack-3.6.1_RC01~1129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdde5b76c9586f006b70fc00d88907084d71461a;p=nethack Some shopkeepers are always stingier This prevents the "drop the item few times, just to see if the sell price changes" --- diff --git a/src/shk.c b/src/shk.c index 31ed6efbd..c8123b74a 100644 --- a/src/shk.c +++ b/src/shk.c @@ -2157,7 +2157,7 @@ register struct monst *shkp; tmp = (obj->otyp % (6 - shkp->m_id % 3)); tmp = (tmp + 3) * obj->quan; } - } else if (tmp > 1L && !rn2(4)) + } else if (tmp > 1L && !(shkp->m_id % 4)) multiplier *= 3L, divisor *= 4L; }