Pickaxing or whipping a liquid wall
This commit is contained in:
+9
-1
@@ -2910,6 +2910,12 @@ use_whip(struct obj *obj)
|
|||||||
} else if (u.dz < 0) {
|
} else if (u.dz < 0) {
|
||||||
You("flick a bug off of the %s.", ceiling(u.ux, u.uy));
|
You("flick a bug off of the %s.", ceiling(u.ux, u.uy));
|
||||||
|
|
||||||
|
} else if (!u.dz && (IS_WATERWALL(levl[rx][ry].typ)
|
||||||
|
|| levl[rx][ry].typ == LAVAWALL)) {
|
||||||
|
You("cause a small splash.");
|
||||||
|
if (levl[rx][ry].typ == LAVAWALL)
|
||||||
|
(void) fire_damage(uwep, FALSE, rx, ry);
|
||||||
|
return ECMD_TIME;
|
||||||
} else if ((!u.dx && !u.dy) || (u.dz > 0)) {
|
} else if ((!u.dx && !u.dy) || (u.dz > 0)) {
|
||||||
int dam;
|
int dam;
|
||||||
|
|
||||||
@@ -2919,7 +2925,9 @@ use_whip(struct obj *obj)
|
|||||||
kick_steed();
|
kick_steed();
|
||||||
return ECMD_TIME;
|
return ECMD_TIME;
|
||||||
}
|
}
|
||||||
if (is_pool_or_lava(u.ux, u.uy)) {
|
if (is_pool_or_lava(u.ux, u.uy)
|
||||||
|
|| IS_WATERWALL(levl[rx][ry].typ)
|
||||||
|
|| levl[rx][ry].typ == LAVAWALL) {
|
||||||
You("cause a small splash.");
|
You("cause a small splash.");
|
||||||
if (is_lava(u.ux, u.uy))
|
if (is_lava(u.ux, u.uy))
|
||||||
(void) fire_damage(uwep, FALSE, u.ux, u.uy);
|
(void) fire_damage(uwep, FALSE, u.ux, u.uy);
|
||||||
|
|||||||
@@ -1101,6 +1101,11 @@ use_pick_axe2(struct obj *obj)
|
|||||||
} else if (lev->typ == IRONBARS) {
|
} else if (lev->typ == IRONBARS) {
|
||||||
pline("Clang!");
|
pline("Clang!");
|
||||||
wake_nearby();
|
wake_nearby();
|
||||||
|
} else if (IS_WATERWALL(lev->typ)) {
|
||||||
|
pline("Splash!");
|
||||||
|
} else if (lev->typ == LAVAWALL) {
|
||||||
|
pline("Splash!");
|
||||||
|
(void) fire_damage(uwep, FALSE, rx, ry);
|
||||||
} else if (IS_TREE(lev->typ)) {
|
} else if (IS_TREE(lev->typ)) {
|
||||||
You("need an axe to cut down a tree.");
|
You("need an axe to cut down a tree.");
|
||||||
} else if (IS_ROCK(lev->typ)) {
|
} else if (IS_ROCK(lev->typ)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user