]> granicus.if.org Git - nethack/commitdiff
Some shopkeepers are always stingier
authorPasi Kallinen <paxed@alt.org>
Tue, 22 Dec 2015 19:44:53 +0000 (21:44 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 22 Dec 2015 19:44:59 +0000 (21:44 +0200)
This prevents the "drop the item few times, just to see if
the sell price changes"

src/shk.c

index 31ed6efbd202fc394d25f6fc6fc4de83163a58f7..c8123b74affe8e8999c46f9d9f439124ca8991cf 100644 (file)
--- 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;
     }