NetHack 2.3e/do wear.c