NetHack 1.3d/polyself.c