tribute enhancement
When reading a novel, select a random passage which hasn't been shown already. Once you've run through all the passages, it resets to get them all again (with new random order that might happen to the be same order if there aren't many passages). Switching to a different novel-- even another copy of the same one--will cause the previous passage selection to be discarded and restarted from scratch if the prior book is read again. Passage tracking for the most recently read novel is kept across save and restore. (That means I needed to bump EDITLEVEL, so it will need to be reset to 0 again before release.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 spell.c $NHDT-Date: 1446854236 2015/11/06 23:57:16 $ $NHDT-Branch: master $:$NHDT-Revision: 1.70 $ */
|
||||
/* NetHack 3.6 spell.c $NHDT-Date: 1447653429 2015/11/16 05:57:09 $ $NHDT-Branch: master $:$NHDT-Revision: 1.72 $ */
|
||||
/* Copyright (c) M. Stephenson 1988 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -469,7 +469,9 @@ register struct obj *spellbook;
|
||||
if (booktype == SPE_NOVEL) {
|
||||
/* Obtain current Terry Pratchett book title */
|
||||
const char *tribtitle = noveltitle(&spellbook->novelidx);
|
||||
if (read_tribute("books", tribtitle, 0, (char *)0, 0)) {
|
||||
|
||||
if (read_tribute("books", tribtitle, 0, (char *) 0, 0,
|
||||
spellbook->o_id)) {
|
||||
u.uconduct.literate++;
|
||||
check_unpaid(spellbook);
|
||||
if (!u.uevent.read_tribute) {
|
||||
|
||||
Reference in New Issue
Block a user