]> granicus.if.org Git - nethack/commit
wishing for novels
authorPatR <rankin@nethack.org>
Mon, 12 Oct 2015 02:39:23 +0000 (19:39 -0700)
committerPatR <rankin@nethack.org>
Mon, 12 Oct 2015 02:39:23 +0000 (19:39 -0700)
commitb2aea3e9d733e28aaaf4a3db75fa05c9c04fc691
treeb8ed2630594a8c96de0ec8dc93f31a1daa1fbf6f
parent1e8f4ee0b1b1067685767fbc8bb711a1d3ac8599
wishing for novels

Make novels be wishable in normal and explore modes in addition to
wizard mode.  I don't think this weakens the tribute and it prevents
someone who attempts such a wish from getting misleading feedback of
"Nothing fitting that description exists in the game."

Wishing for "novel" will yield "novel named Foo" where "Foo" is a
randomly chosen Discworld title.  Wishing for "novel named Bar" will
yield "novel named Bar" or "novel named The Bar" if "Bar" or "The Bar"
is a valid Discworld title, or else override "Bar" and pick random
Discworld "novel named Foo" if it isn't.

Since first read of a novel bestows some experience (once per game, no
matter how many novels become available), a pacifist with an early
wish can get a head start.  I don't think that's a big deal.  And it
will require an awful lot of wishes for any player who wants to acquire
all 41 titles in one game.  I imagine someone will manage it.
src/do_name.c
src/mkobj.c
src/objects.c
src/objnam.c