digging rock vs. chopping wood

Refinement of the digging code:
* Picks should not chop down trees, but axes should.
* Picks should break walls, rock, statues, and boulders; axes shouldn't.
* Either picks or axes should chop down doors.
This commit is contained in:
kmhugo
2002-04-16 01:37:57 +00:00
parent a15813a3cb
commit 31c824dbf3
3 changed files with 88 additions and 52 deletions

View File

@@ -2827,7 +2827,7 @@ doapply()
if (is_pole(obj)) {
res = use_pole(obj);
break;
} else if (is_pick(obj) /* || is_axe(obj) */) {
} else if (is_pick(obj) || is_axe(obj)) {
res = use_pick_axe(obj);
break;
}