NetHack 3.2.0/do wear.c