Fix B03001

"You can't loot or pick up containers on the floor if you're not
skilled enough to reach them from your saddle, but you can check
for and disarm traps on them; this seems a little odd. (Likewise,
being able to set land mines and beartraps while riding.)"
This commit is contained in:
nethack.allison
2003-05-25 22:47:12 +00:00
parent 1f712ac626
commit 01120453f2
3 changed files with 47 additions and 4 deletions

View File

@@ -3392,7 +3392,13 @@ boolean force;
case 'q': return(0);
case 'n': continue;
}
#ifdef STEED
if (u.usteed && P_SKILL(P_RIDING) < P_BASIC) {
You("aren't skilled enough to reach from %s.",
mon_nam(u.usteed));
return(0);
}
#endif
if((otmp->otrapped && (force || (!confused
&& rn2(MAXULEV + 1 - u.ulevel) < 10)))
|| (!force && confused && !rn2(3))) {