death-reason sanitizing
Prevent commas, equal signs, and tabs in reason for death. Comma can make while-helpless reason ambiguous in record and basic logfile. Equal sign can do the same for fixrecord.awk, the awk program that can be used to fix up corrupted 3.6.0 record files, if it resorts to constructing logfile records out of xlogfile records. And tab could break parsing of xlogfile (it should already be excluded though; the code that lets players assign names to monsters uses mungspaces(), and one of the things that does is to convert any tab into a space before squeezing consecutive spaces down to one). The name alteration shows up for tombstone as well as for file entries. That could be changed but hardly seems worth the effort. Perhaps the name sanitizing ought to be moved to the initial naming? At least then it would be pretty obvious that it was intentional rather by mistake.
This commit is contained in:
@@ -68,6 +68,8 @@ fix message typo if tame mind flayer dies trying to eat Medusa's brains
|
||||
use alternate rejection message if attempting to name an unnameable monster
|
||||
with the name it already has
|
||||
cockatrice corpse no longer leaves multiple statues for shape-shifted vampire
|
||||
alter name of monster causing hero's death if name contains characters that
|
||||
could cause confusion when using record, logfile, or xlogfile later
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
Reference in New Issue
Block a user