]> granicus.if.org Git - nethack/commitdiff
B05002 can open bag then cannot loot it
authornethack.allison <nethack.allison>
Mon, 28 Jul 2003 03:08:46 +0000 (03:08 +0000)
committernethack.allison <nethack.allison>
Mon, 28 Jul 2003 03:08:46 +0000 (03:08 +0000)
> Trying to loot a bag on the floor while wielding a cursed
> quarterstaff: "You carefully open the bag... You have no free hand."
> Shouldn't I notice that I have no free hand before even trying?

add freehand() check to able_to_loot()

doc/fixes34.2
src/pickup.c

index 79349a2f00962ce2434b30ff4924bd706ee11fd1..60f2b6a0203f6a6cc477f1fbc7c5537f7d7945b4 100644 (file)
@@ -112,6 +112,7 @@ stone-to-flesh of spot with multiple statues can animate more than one
 use of stethoscope now deliberately impacted when hero is engulfed by whirly 
        monster but fixed so it can sometimes work on your steed there too
 typos fixed in data.base
+add freehand() check to able_to_loot()
 
 
 Platform- and/or Interface-Specific Fixes
index 407b61ac792af38137341302b7506f149240a8a1..c15cb347a89240dc146b0aaa22889e28af2caf55 100644 (file)
@@ -1437,6 +1437,10 @@ boolean looting; /* loot vs tip */
        } else if (nolimbs(youmonst.data)) {
                pline("Without limbs, you cannot %s anything.", verb);
                return FALSE;
+       } else if (!freehand()) {
+               pline("Without a free %s, you cannot loot anything.",
+                       body_part(HAND));
+               return FALSE;
        }
        return TRUE;
 }