NetHack 1.4f/apply.c