generated from MrSphay/codex-agent-repository-kit
Restore instant crater debris and glow sprites
All checks were successful
Build / build (push) Successful in 9m32s
All checks were successful
Build / build (push) Successful in 9m32s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user