NetHack 1.3d/trap.c