NetHack 3.2.0/invent.c