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:
10
src/do.c
10
src/do.c
@@ -760,8 +760,14 @@ dodown()
|
||||
if (!(trap = t_at(u.ux,u.uy)) ||
|
||||
(trap->ttyp != TRAPDOOR && trap->ttyp != HOLE)
|
||||
|| !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) {
|
||||
|
||||
Reference in New Issue
Block a user