PERS_IS_UID
0 or 1 to use user names or numeric userids, respectively, to identify
unique people for the score file.
+.lp
+MAX_STATUENAME_RANK
+Maximum number of score file entries to use for random statue names
+(default is 10).
.hn 1
Scoring
.pg
int pers_is_uid;
int entrymax;
int pointsmin;
+ int tt_oname_maxrank;
#ifdef PANICTRACE
/* panic options */
char *gdbpath;
return 0;
}
sysopt.pointsmin = n;
+ } else if (src == SET_IN_SYS && match_varname(buf, "MAX_STATUENAME_RANK", 10)) {
+ n = atoi(bufp);
+ if (n < 1) {
+ raw_printf("Illegal value in MAX_STATUENAME_RANK (minimum is 1).");
+ return 0;
+ }
+ sysopt.tt_oname_maxrank = n;
# ifdef PANICTRACE
} else if (src == SET_IN_SYS &&
match_varname(buf, "PANICTRACE_LIBC", 15)) {
sysopt.entrymax = ENTRYMAX;
sysopt.pointsmin = POINTSMIN;
sysopt.pers_is_uid = PERS_IS_UID;
+ sysopt.tt_oname_maxrank = 10;
/* sanity checks */
if(PERSMAX<1) sysopt.persmax = 1;
}
tt = &tt_buf;
- rank = rnd(10);
+ rank = rnd(sysopt.tt_oname_maxrank);
pickentry:
for(i = rank; i; i--) {
readentry(rfile, tt);
# numeric (1) user id.
#PERS_IS_UID=1
+# Maximum number of score file entries to use for random statue names
+#MAX_STATUENAME_RANK=10
+
# Try to get more info in case of a program bug or crash. Using GDB can
# get more information and works on more systems but requires gdb be available;
# using LIBC only works if NetHack is linked with a libc that supports the