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

View File

@ -68,7 +68,7 @@ public class Sector{
public void generate(){ public void generate(){
//TODO use simplex and a seed //TODO use simplex and a seed
hostility = Math.max(Noise.snoise3(tile.v.x, tile.v.y, tile.v.z, 0.5f, 0.5f), 0); hostility = Math.max(Noise.snoise3(tile.v.x, tile.v.y, tile.v.z, 0.5f, 0.4f), 0);
} }
public boolean locked(){ public boolean locked(){

View File

@ -380,7 +380,7 @@ public class PlanetDialog extends FloatingDialog{
}); });
} }
//disaply how many turns this sector has been attacked //display how many turns this sector has been attacked
if(selected.getTurnsPassed() > 0 && selected.hasBase()){ if(selected.getTurnsPassed() > 0 && selected.hasBase()){
stable.row(); stable.row();