fix: guardian effect + guardian damage + sounds (#51)

This commit is contained in:
Lord Cambion
2026-05-03 17:59:57 +03:00
committed by GitHub
parent 2673323dc0
commit 16f0495ac2
42 changed files with 456 additions and 54 deletions
+7 -1
View File
@@ -28,6 +28,7 @@
#include "BreakingItemParticle.h"
#include "SnowShovelParticle.h"
#include "BreakingItemParticle.h"
#include "MobAppearanceParticle.h"
#include "HeartParticle.h"
#include "HugeExplosionParticle.h"
#include "HugeExplosionSeedParticle.h"
@@ -822,6 +823,7 @@ void LevelRenderer::renderChunksDirect(int layer, double alpha)
#ifdef __PSVITA__
#include <stdlib.h>
// this is need to sort the chunks by depth
typedef struct
{
@@ -2859,7 +2861,7 @@ shared_ptr<Particle> LevelRenderer::addParticleInternal(ePARTICLE_TYPE eParticle
// 4J - the java code doesn't distance cull these two particle types, we need to implement this behaviour differently as our distance check is
// mixed up with other things
bool distCull = true;
if ( (eParticleType == eParticleType_hugeexplosion) || (eParticleType == eParticleType_largeexplode) || (eParticleType == eParticleType_dragonbreath) || (eParticleType == eParticleType_wake))
if ( (eParticleType == eParticleType_hugeexplosion) || (eParticleType == eParticleType_largeexplode) || (eParticleType == eParticleType_dragonbreath) || (eParticleType == eParticleType_wake)||(eParticleType == eParticleType_mobAppearance))
{
distCull = false;
}
@@ -3075,6 +3077,10 @@ shared_ptr<Particle> LevelRenderer::addParticleInternal(ePARTICLE_TYPE eParticle
case eParticleType_barrier:
particle = std::make_shared<BarrierParticle>(lev, x, y, z, xa, ya, za);
break;
case eParticleType_mobAppearance:
particle = std::make_shared<MobAppearanceParticle>(lev, x, y, z);
break;
default:
if( ( eParticleType >= eParticleType_iconcrack_base ) && ( eParticleType <= eParticleType_iconcrack_last ) )
{