From a796fc1dce48b4c1ccb2a83df87366947af70ba0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 16 May 2020 22:44:41 -0400 Subject: [PATCH] various tweaks --- core/src/mindustry/maps/SectorDamage.java | 8 ++++---- core/src/mindustry/type/Sector.java | 2 +- core/src/mindustry/ui/dialogs/PlanetDialog.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/maps/SectorDamage.java b/core/src/mindustry/maps/SectorDamage.java index 4ba3201f53..7d923313ef 100644 --- a/core/src/mindustry/maps/SectorDamage.java +++ b/core/src/mindustry/maps/SectorDamage.java @@ -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(); } diff --git a/core/src/mindustry/type/Sector.java b/core/src/mindustry/type/Sector.java index 4e2cfa5693..cb76ba9101 100644 --- a/core/src/mindustry/type/Sector.java +++ b/core/src/mindustry/type/Sector.java @@ -68,7 +68,7 @@ public class Sector{ public void generate(){ //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(){ diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index c39a116527..14b1c18c7a 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -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()){ stable.row();