Fixes #369. Fixes #370. The default entries inserted by makedefs -s (starting in 3.6.6, to guard against having an empty data file which led to divide by zero crash when nethack picked a random entry) lacked a terminating newline so the first entry from the file (for the usual case when that data file wasn't empty) got implicitly concatenated to it. If the first entry got chosen during play, the initial portion corresponding to the default entry was decrypted properly but the concatenated portion corresponding to file's first line didn't. So gibberish was appended to default engraving or epitaph or bogus monster; also, the input file's first line would never appear. The newline fix in makedefs is different from pull request #370 but accomplishes the same thing. The bulk of the patch is an enhancement to #wizrumorcheck to show first (default inserted by makedefs), second (first in input file) and last engravings, epitaphs, and bogusmons in addition to rumors. The command name has become a little misleading but the limited functionality doesn't call for separate commands.
235 KiB
235 KiB