]> granicus.if.org Git - nethack/commit
wishing for "<foo> of <bar> abilities" (trunk only)
authornethack.rankin <nethack.rankin>
Sun, 2 Oct 2011 03:55:03 +0000 (03:55 +0000)
committernethack.rankin <nethack.rankin>
Sun, 2 Oct 2011 03:55:03 +0000 (03:55 +0000)
commitc980cf55e0d8dcf9b2dde57871641eea9c6daa08
tree20d6e523d7d88b852b9c58502b6f9f545c36e7a1
parentb5224ab2d08207c5443bf66bfbd925e4b5097054
wishing for "<foo> of <bar> abilities" (trunk only)

     Wishing for "{gain,restore,sustain} abilities" works since
makesingular() changes it to "* ability", but a post-3.4.3 change to
makesingular() caused "potion(s) of {gain,restore} abilities" and
"ring of sustain abilities" to fail to match the name, then yield a
random potion or ring.  If there turn out to be many other similar
situations, makesingular()'s behavior for "foo(s) of bars" may need
to revert.  For now, handle "* of * abilities" as a special case.
src/objnam.c