Give a sound message when thrown item lands in water or lava
This commit is contained in:
@@ -775,6 +775,7 @@ Death attacking a monster does drain life attack
|
|||||||
add unique Rider revival messages
|
add unique Rider revival messages
|
||||||
don't dereference NULL u.ustuck in dobuzz() when hero has been swallowed
|
don't dereference NULL u.ustuck in dobuzz() when hero has been swallowed
|
||||||
monsters should growl even if you can't hear it
|
monsters should growl even if you can't hear it
|
||||||
|
give a sound effect message when thrown item lands in water or lava
|
||||||
|
|
||||||
|
|
||||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
@@ -1590,6 +1590,12 @@ throwit(struct obj *obj,
|
|||||||
clear_thrownobj = TRUE;
|
clear_thrownobj = TRUE;
|
||||||
goto throwit_return;
|
goto throwit_return;
|
||||||
}
|
}
|
||||||
|
if (!Deaf && !Underwater) {
|
||||||
|
/* Some sound effects when item lands in water or lava */
|
||||||
|
if (is_pool(g.bhitpos.x, g.bhitpos.y)
|
||||||
|
|| (is_lava(g.bhitpos.x, g.bhitpos.y) && !is_flammable(obj)))
|
||||||
|
pline((weight(obj) > 9) ? "Splash!" : "Plop!");
|
||||||
|
}
|
||||||
if (flooreffects(obj, g.bhitpos.x, g.bhitpos.y, "fall")) {
|
if (flooreffects(obj, g.bhitpos.x, g.bhitpos.y, "fall")) {
|
||||||
clear_thrownobj = TRUE;
|
clear_thrownobj = TRUE;
|
||||||
goto throwit_return;
|
goto throwit_return;
|
||||||
|
|||||||
Reference in New Issue
Block a user