]> granicus.if.org Git - nethack/commit
fix bz424 - cannot wish for different size globs
authorPatR <rankin@nethack.org>
Tue, 10 May 2016 01:56:31 +0000 (18:56 -0700)
committerPatR <rankin@nethack.org>
Tue, 10 May 2016 01:56:31 +0000 (18:56 -0700)
commit2f7a67483fb1b1e392c6263f3b951d54f5670278
treee0ed5e300f8a2baca02fb21157dbdca870f6194f
parent2cffaccb3f964bd5746acada4bea22b80f30f97f
fix bz424 - cannot wish for different size globs

Globs of pudding maintain an item quantity of 1 but vary in size
based on weight.  xname() formats with prefix of "small", <nothing>,
"large", and "very large" depending upon weight but wish processing
didn't recognize the prefix strings and reported "nothing fitting
that description exists".  Make wishing handle "small" (which is
actually the default), "medium" (since <nothing> isn't the default),
"large", and "very large".  They get ignored if the item isn't a
"glob of {gray ooze, brown pudding, black pudding, or green slime}".

Also, clean up recently added rnd_otyp_by_namedesc().
src/objnam.c