buglist: autodig

> Would it be possible to make autodig also dig downward
> when I press '>' while wielding an pick-axe? When digging for gold,
> after casting detect objects, this would be convenient for getting
> to buried gold and gems.
> [<Someone>]
This commit is contained in:
nethack.allison
2003-09-15 03:49:28 +00:00
parent e919b2e01c
commit b4b37dde28
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -36,6 +36,7 @@ win32gui: you couldn't specify an alignment in defaults.nh and have it stick
General New Features General New Features
-------------------- --------------------
bones file compatibility info is now written into the dat/options file bones file compatibility info is now written into the dat/options file
extend autodig to work downwards via '>'
Platform- and/or Interface-Specific New Features Platform- and/or Interface-Specific New Features
+8 -2
View File
@@ -760,8 +760,14 @@ dodown()
if (!(trap = t_at(u.ux,u.uy)) || if (!(trap = t_at(u.ux,u.uy)) ||
(trap->ttyp != TRAPDOOR && trap->ttyp != HOLE) (trap->ttyp != TRAPDOOR && trap->ttyp != HOLE)
|| !Can_fall_thru(&u.uz) || !trap->tseen) { || !Can_fall_thru(&u.uz) || !trap->tseen) {
You_cant("go down here.");
return(0); if (flags.autodig && !flags.nopick &&
uwep && is_pick(uwep)) {
return use_pick_axe2(uwep);
} else {
You_cant("go down here.");
return(0);
}
} }
} }
if(u.ustuck) { if(u.ustuck) {