This adds in <Someone>'s autodig patch.

This commit is contained in:
arromdee
2002-01-15 02:50:36 +00:00
parent 59b7cb4be4
commit 4b6b5d7b8c
9 changed files with 37 additions and 2 deletions

View File

@@ -545,6 +545,14 @@ boolean test_only;
} else if (tunnels(youmonst.data) && !needspick(youmonst.data)) {
/* Eat the rock. */
if (!test_only && still_chewing(x,y)) return FALSE;
} else if (flags.autodig && !flags.run && !flags.nopick && (uwep->otyp == PICK_AXE || uwep->otyp == DWARVISH_MATTOCK)) {
/* MRKR: Automatic digging when wielding the appropriate tool */
if (!test_only) {
use_pick_axe2(uwep);
flags.move = 0;
nomul(0);
return FALSE;
}
} else {
if ( !test_only ) {
if (Is_stronghold(&u.uz) && is_db_wall(x,y))