]> granicus.if.org Git - nethack/commitdiff
need hands to throw
authornethack.rankin <nethack.rankin>
Thu, 11 Jan 2007 05:15:33 +0000 (05:15 +0000)
committernethack.rankin <nethack.rankin>
Thu, 11 Jan 2007 05:15:33 +0000 (05:15 +0000)
     From the newsgroup:  slash'em lychanthrope character could throw
while in wolf form.  That came straight from nethack; any animal capable
of manipulating an object--possibly with its mouth--could throw things.
Now hands are required.  This doesn't require free hands, although it
probably should; it's kind of tough to imagine making a competent throw
while your hands are stuck to a cursed two-handed weapon.

doc/fixes34.4
src/dothrow.c

index 38e4f5b8549ed48dd5ef93a58c121a2bba8bcac6..6e3088ecc663340dbf0df060a93bd03f120c291d 100644 (file)
@@ -293,6 +293,7 @@ monster killed in midst of multi-shot volley throwing/shooting might cause
 can't arm bear traps or land mines on Planes of Air or Water
 statues that "come to life" when trap activates shouldn't start out sleeping
 shopkeepers and priests wouldn't step on graves put in their rooms by bones
+can't throw if poly'd into form which lacks hands
 
 
 Platform- and/or Interface-Specific Fixes
index 47d8ffc2e27e29059177d32217df9a4267716cdb..c2b0e832ff2906b8da6ec36bc5df9552dbfc6697 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)dothrow.c  3.5     2006/12/08      */
+/*     SCCS Id: @(#)dothrow.c  3.5     2007/01/10      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -229,6 +229,10 @@ dothrow()
        if (notake(youmonst.data)) {
            You("are physically incapable of throwing anything.");
            return 0;
+       } else if (nohands(youmonst.data)) {
+           You_cant("throw without hands.");   /* not `body_part(HAND)' */
+           return 0;
+           /*[what about !freehand(), aside from cursed missile launcher?]*/
        }
 
        if(check_capacity((char *)0)) return(0);