]> granicus.if.org Git - nethack/commit
inventory overflow control
authornethack.rankin <nethack.rankin>
Fri, 3 Nov 2006 04:41:30 +0000 (04:41 +0000)
committernethack.rankin <nethack.rankin>
Fri, 3 Nov 2006 04:41:30 +0000 (04:41 +0000)
commit8ead488b632775cbd3a76b0e54595d63d70e6d5f
tree83dea9cfcef472fbd20f456115c2badae5f2304e
parent53060e3abf8be468387d344879d92c685e2182ae
inventory overflow control

     Prevent heroes in giant form from picking up boulders once they run
out of available inventory slots to avoid an uncontrolled number of '#'
entries.  There is an exception:  if not already carrying any boulders,
they can put one into the '#' slot.  Loadstones are treated the same way,
although since they stack and are rare to begin with, someone would have
to have gone far out of their way to have gotten many # entries with them.

     Assuming that you can get something other than a boulder or loadstone
into the # slot (which is definitely possible, I just can't remember how),
you could relatively easily get three total # entries by picking up a
loadstone and polying into a giant and picking up a boulder.  But I don't
think there's anything wrong with that.
doc/fixes34.4
src/pickup.c