Guidebook update and SEDUCE runtime switch
add SYSCF docs to the Guidebook because it's info needed in a binary distro Guidebook.tex - also add some missing italics to some "NetHack" occurances call nethack.org "official" Guidebook.txt - didn't regenerate cleanly so no diff add SEDUCE to SYSCF (only partly inspired by the recent email)
This commit is contained in:
20
src/sys.c
20
src/sys.c
@@ -47,5 +47,25 @@ sys_early_init(){
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef SEDUCE
|
||||
sysopt.seduce = 1; /* if it's compiled in, default to on */
|
||||
sysopt_seduce_set(sysopt.seduce);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
extern struct attack sa_yes[NATTK];
|
||||
extern struct attack sa_no[NATTK];
|
||||
|
||||
void
|
||||
sysopt_seduce_set(val)
|
||||
int val;
|
||||
{
|
||||
struct attack *setval = val ? sa_yes : sa_no;
|
||||
int x;
|
||||
for(x=0; x<NATTK; x++){
|
||||
mons[PM_INCUBUS].mattk[x] = setval[x];
|
||||
mons[PM_SUCCUBUS].mattk[x] = setval[x];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user