Restore instant crater debris and glow sprites
All checks were successful
Build / build (push) Successful in 9m32s

This commit is contained in:
MrSphay
2026-05-09 16:46:14 +02:00
parent b9e06a6a19
commit 77a55286b8
7 changed files with 123 additions and 143 deletions

View File

@@ -18,7 +18,8 @@ public class SmokeParticle extends TextureSheetParticle {
super(level, x, y, z, xSpeed, ySpeed, zSpeed);
this.sprites = sprites;
this.lifetime = Math.max(6, options.getLifetime());
this.startSize = options.getScale() * (options.isHeavy() ? 1.45f : 1.0f);
float requestedSize = options.getScale() * (options.isHeavy() ? 1.25f : 1.0f);
this.startSize = Mth.clamp(requestedSize, 0.12f, options.isHeavy() ? 8.0f : 5.5f);
this.startAlpha = options.getAlpha();
this.quadSize = this.startSize;
this.rCol = options.getRed();
@@ -51,7 +52,7 @@ public class SmokeParticle extends TextureSheetParticle {
}
float progress = this.age / (float)this.lifetime;
this.setSpriteFromAge(this.sprites);
this.quadSize = this.startSize * (1.0f + progress * 1.6f);
this.quadSize = Math.min(this.startSize + 5.5f, this.startSize * (1.0f + progress * 1.25f));
this.alpha = this.startAlpha * Mth.clamp(1.0f - progress, 0.0f, 1.0f);
}