NetHack 3.1.0/do wear.c