axes and boulders

<email deleted>
Subject: Beta 1 comments
> Is "You swing your axe through thin air" the right message to give
> when you try to use it to chop through a statue or boulder? Relatedly,
> this line in dig() looks as if it needs updating to the new dig_typ
> indices:
This commit is contained in:
nethack.allison
2002-06-30 00:22:04 +00:00
parent 60f057ff8e
commit d307fb9de6

View File

@@ -908,6 +908,16 @@ struct obj *obj;
You("need an axe to cut down a tree.");
else if (IS_ROCK(lev->typ))
You("need a pick to dig rock.");
else if (!ispick && (sobj_at(STATUE, rx, ry) ||
sobj_at(BOULDER, rx, ry))) {
struct obj *otmp;
boolean vibrate = !rn2(3);
pline("Sparks fly as you whack the %s%s!",
sobj_at(STATUE, rx, ry) ? "statue" : "boulder",
vibrate ? " and the handle vibrates violently" : "");
if (vibrate) losehp(2, "axing a hard object", KILLED_BY);
if ((otmp = carrying(POT_OIL))) catch_lit(otmp);
}
else
You("swing your %s through thin air.",
aobjnam(obj, (char *)0));