NetHack 2.2a/rip.c