various tweaks

This commit is contained in:
Anuken
2020-05-16 22:44:41 -04:00
parent 23b431acae
commit a796fc1dce
3 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,6 @@ import arc.math.*;
import arc.math.geom.*;
import arc.struct.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.world.*;
import mindustry.world.blocks.storage.*;
@@ -58,9 +57,10 @@ public class SectorDamage{
//remove the block when destroyed
if(other.entity.health() < 0){
if(!other.floor().solid && !other.floor().isLiquid && Mathf.chance(0.4)){
Effects.rubble(other.entity.x(), other.entity.y(), other.block().size);
}
//rubble currently disabled
//if(!other.floor().solid && !other.floor().isLiquid && Mathf.chance(0.4)){
// Effects.rubble(other.entity.x(), other.entity.y(), other.block().size);
//}
other.remove();
}