eating tins while poly'd (trunk only)

While testing something, I noticed that I could eat a tin (off the
floor) while polymorphed into a bat.  The code to check whether the hero
could open a tin was testing for limbs, so winged critters passed.  Now
it requires hands instead of limbs, and also that the current form be big
enough to be capable of wielding something (even though you don't need to
be wielding anything to open a tin).

     This means that a hero poly'd into a dog or cat will no longer be
able to serve him-/herself dinner from a tin....
This commit is contained in:
nethack.rankin
2011-10-02 01:50:23 +00:00
parent 84f02bd336
commit 1e65061989
2 changed files with 2 additions and 1 deletions

View File

@@ -1439,7 +1439,7 @@ start_tin(otmp) /* called when starting to open a tin */
if (metallivorous(youmonst.data)) {
mesg = "You bite right into the metal tin...";
tmp = 0;
} else if (nolimbs(youmonst.data)) {
} else if (cantwield(youmonst.data)) { /* nohands || verysmall */
You("cannot handle the tin properly to open it.");
return;
} else if (otmp->blessed) {