From 187b8dec9fb71da0e99a8a764d061602097beb0a Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 11 Jan 2007 05:15:33 +0000 Subject: [PATCH] need hands to throw 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 | 1 + src/dothrow.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 38e4f5b85..6e3088ecc 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/src/dothrow.c b/src/dothrow.c index 47d8ffc2e..c2b0e832f 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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);