splash
This commit is contained in:
+3
-1
@@ -1750,8 +1750,10 @@ throwit(struct obj *obj,
|
|||||||
if (!Deaf && !Underwater) {
|
if (!Deaf && !Underwater) {
|
||||||
/* Some sound effects when item lands in water or lava */
|
/* Some sound effects when item lands in water or lava */
|
||||||
if (is_pool(gb.bhitpos.x, gb.bhitpos.y)
|
if (is_pool(gb.bhitpos.x, gb.bhitpos.y)
|
||||||
|| (is_lava(gb.bhitpos.x, gb.bhitpos.y) && !is_flammable(obj)))
|
|| (is_lava(gb.bhitpos.x, gb.bhitpos.y) && !is_flammable(obj))) {
|
||||||
|
Soundeffect(se_splash, 50);
|
||||||
pline((weight(obj) > 9) ? "Splash!" : "Plop!");
|
pline((weight(obj) > 9) ? "Splash!" : "Plop!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (flooreffects(obj, gb.bhitpos.x, gb.bhitpos.y, "fall")) {
|
if (flooreffects(obj, gb.bhitpos.x, gb.bhitpos.y, "fall")) {
|
||||||
clear_thrownobj = TRUE;
|
clear_thrownobj = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user