NetHack 2.2a/pri.c