'fixed' tests

This commit is contained in:
Anuken
2022-02-15 00:24:43 -05:00
parent 95a0f4e735
commit 474cb112c6
8 changed files with 453 additions and 29 deletions

View File

@@ -1,6 +1,5 @@
package mindustry.world.blocks.power;
import arc.*;
import arc.func.*;
import arc.graphics.*;
import arc.math.*;
@@ -145,10 +144,8 @@ public class ItemLiquidGenerator extends PowerGenerator{
if(randomlyExplode && state.rules.reactorExplosions && Mathf.chance(delta() * 0.06 * Mathf.clamp(explosiveness - 0.5f))){
//this block is run last so that in the event of a block destruction, no code relies on the block type
Core.app.post(() -> {
damage(Mathf.random(11f));
explodeEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
});
damage(Mathf.random(11f));
explodeEffect.at(x + Mathf.range(size * tilesize / 2f), y + Mathf.range(size * tilesize / 2f));
}
}else{
productionEfficiency = 0.0f;