Customizable death shake (#10375)

This commit is contained in:
Elixias
2025-02-04 11:45:20 -07:00
committed by GitHub
parent 88388fffeb
commit 49221a1db4
2 changed files with 3 additions and 1 deletions

View File

@@ -695,7 +695,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
type.deathExplosionEffect.at(x, y, bounds() / 2f / 8f);
}
float shake = hitSize / 3f;
float shake = type.deathShake < 0 ? hitSize / 3f : type.deathShake;
if(type.createScorch){
Effect.scorch(x, y, (int)(hitSize / 5));