mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
various tweaks
This commit is contained in:
parent
23b431acae
commit
a796fc1dce
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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(){
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user