NetHack 2.3e/trap.c