NetHack 1.4f/trap.c