Custom Unit Death Explosion Effects (#5389)

This commit is contained in:
MEEP of Faith
2021-06-06 16:38:12 -07:00
committed by GitHub
parent 79695086c6
commit a09771b569
3 changed files with 9 additions and 3 deletions

View File

@@ -450,7 +450,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
float power = item().charge * stack().amount * 150f;
if(!spawnedByCore){
Damage.dynamicExplosion(x, y, flammability, explosiveness, power, bounds() / 2f, state.rules.damageExplosions, item().flammability > 1, team);
Damage.dynamicExplosion(x, y, flammability, explosiveness, power, bounds() / 2f, state.rules.damageExplosions, item().flammability > 1, team, type.deathExplosionEffect);
}
float shake = hitSize / 3f;