NetHack 1.3d/dog.c