]> granicus.if.org Git - nethack/commit
wishing tweak: detect X vs X detection (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 28 Aug 2011 20:47:56 +0000 (20:47 +0000)
committernethack.rankin <nethack.rankin>
Sun, 28 Aug 2011 20:47:56 +0000 (20:47 +0000)
commit0acaa9bc1b741451deeaa8d1d375f06edc9b9087
tree6fe2c267042c30793f1bcba6b2387514a289477c
parent67f3a26e5208d9bbda27ed9e6435dff89645d057
wishing tweak: detect X vs X detection (trunk only)

     Allow wishing for a "potion of detect objects" to generate a
"potion of object detection", or for a "spellbook of monster detection"
to generate a "spellbook of detect monsters".

     To get a spellbook you'll need to explicitly specify "spellbook"
even when using a name that's unique to books:  asking for "detect food"
will yield a "scroll of food detection" rather than "spellbook of detect
food" because it finds potions and scrolls first.  [That's nothing new
for the case where a spellbook and potion or scroll have the same name,
only new behavior for "detect X" vs "X detection" matches.]

     Wishing for "detect food" used to yield a random food item rather
than a "spellbook of detect food".  That's fixed now, although as
mentioned above it will actually produce a "scroll of food detection".
doc/fixes35.0
src/objnam.c