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.
This commit is contained in:
nethack.rankin
2007-01-11 05:15:33 +00:00
parent 538b91ddc9
commit 187b8dec9f
2 changed files with 6 additions and 1 deletions

View 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);