Make the "wall of water" stop thrown or kicked items
This commit is contained in:
@@ -777,6 +777,7 @@ don't dereference NULL u.ustuck in dobuzz() when hero has been swallowed
|
||||
monsters should growl even if you can't hear it
|
||||
give a sound effect message when thrown item lands in water or lava
|
||||
don't show rusting of items that land in water
|
||||
the water used on the Plane of Water stops thrown or kicked items
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
|
||||
@@ -3459,6 +3459,12 @@ bhit(int ddx, int ddy, int range, /* direction and range */
|
||||
|
||||
typ = levl[g.bhitpos.x][g.bhitpos.y].typ;
|
||||
|
||||
/* WATER aka "wall of water" stops items */
|
||||
if (typ == WATER) {
|
||||
if (weapon == THROWN_WEAPON || weapon == KICKED_WEAPON)
|
||||
break;
|
||||
}
|
||||
|
||||
/* iron bars will block anything big enough and break some things */
|
||||
if (weapon == THROWN_WEAPON || weapon == KICKED_WEAPON) {
|
||||
if (obj->lamplit && !Blind)
|
||||
|
||||
Reference in New Issue
Block a user