NetHack 2.3e/apply.c