This commit is contained in:
Anuken
2021-10-20 14:34:27 -04:00
parent 4436a5ced9
commit 085a974350
3 changed files with 7 additions and 5 deletions

View File

@@ -139,7 +139,8 @@ public class NuclearReactor extends PowerGenerator{
if((fuel < 5 && heat < 0.5f) || !state.rules.reactorExplosions) return;
Effect.shake(6f, 16f, x, y);
Damage.damage(x, y, explosionRadius * tilesize * (float)(fuel / itemCapacity), explosionDamage * 4);
// * ((float)fuel / itemCapacity) to scale based on fullness
Damage.damage(x, y, explosionRadius * tilesize, explosionDamage * 4);
explodeEffect.at(x, y);
}