From e48e10a44c99af5fd143986a00dffac8b2a42ea7 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 14 Oct 2020 10:58:12 +0200 Subject: [PATCH] Add Hellfire barral sounds --- Source/objects.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index 7ba9bf006..f0fa6034c 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -4945,7 +4945,14 @@ void BreakBarrel(int pnum, int i, int dam, BOOL forcebreak, BOOL sendmsg) } if (object[i]._otype == OBJ_BARRELEX) { - PlaySfxLoc(IS_BARLFIRE, object[i]._ox, object[i]._oy); +#ifdef HELLFIRE + if (currlevel >= 21 && currlevel <= 24) + PlaySfxLoc(IS_POPPOP3, object[i]._ox, object[i]._oy); + else if (currlevel >= 17 && currlevel <= 20) + PlaySfxLoc(IS_POPPOP8, object[i]._ox, object[i]._oy); + else +#endif + PlaySfxLoc(IS_BARLFIRE, object[i]._ox, object[i]._oy); for (yp = object[i]._oy - 1; yp <= object[i]._oy + 1; yp++) { for (xp = object[i]._ox - 1; xp <= object[i]._ox + 1; xp++) { if (dMonster[xp][yp] > 0) @@ -4960,7 +4967,14 @@ void BreakBarrel(int pnum, int i, int dam, BOOL forcebreak, BOOL sendmsg) } } } else { - PlaySfxLoc(IS_BARREL, object[i]._ox, object[i]._oy); +#ifdef HELLFIRE + if (currlevel >= 21 && currlevel <= 24) + PlaySfxLoc(IS_POPPOP2, object[i]._ox, object[i]._oy); + else if (currlevel >= 17 && currlevel <= 20) + PlaySfxLoc(IS_POPPOP5, object[i]._ox, object[i]._oy); + else +#endif + PlaySfxLoc(IS_BARREL, object[i]._ox, object[i]._oy); SetRndSeed(object[i]._oRndSeed); if (object[i]._oVar2 <= 1) { if (object[i]._oVar3 == 0)