Merge branch 'master' of https://github.com/Anuken/Mindustry into 7.0-features
This commit is contained in:
@@ -637,6 +637,8 @@ public class Blocks implements ContentList{
|
|||||||
hasPower = true;
|
hasPower = true;
|
||||||
hasLiquids = false;
|
hasLiquids = false;
|
||||||
drawer = new DrawSmelter(Color.valueOf("ffef99"));
|
drawer = new DrawSmelter(Color.valueOf("ffef99"));
|
||||||
|
ambientSound = Sounds.smelter;
|
||||||
|
ambientSoundVolume = 0.07f;
|
||||||
|
|
||||||
consumes.items(with(Items.coal, 1, Items.sand, 2));
|
consumes.items(with(Items.coal, 1, Items.sand, 2));
|
||||||
consumes.power(0.50f);
|
consumes.power(0.50f);
|
||||||
@@ -653,6 +655,8 @@ public class Blocks implements ContentList{
|
|||||||
itemCapacity = 30;
|
itemCapacity = 30;
|
||||||
boostScale = 0.15f;
|
boostScale = 0.15f;
|
||||||
drawer = new DrawSmelter(Color.valueOf("ffef99"));
|
drawer = new DrawSmelter(Color.valueOf("ffef99"));
|
||||||
|
ambientSound = Sounds.smelter;
|
||||||
|
ambientSoundVolume = 0.07f;
|
||||||
|
|
||||||
consumes.items(with(Items.coal, 4, Items.sand, 6, Items.pyratite, 1));
|
consumes.items(with(Items.coal, 4, Items.sand, 6, Items.pyratite, 1));
|
||||||
consumes.power(4f);
|
consumes.power(4f);
|
||||||
@@ -684,6 +688,8 @@ public class Blocks implements ContentList{
|
|||||||
size = 2;
|
size = 2;
|
||||||
hasPower = hasItems = true;
|
hasPower = hasItems = true;
|
||||||
drawer = new DrawSmelter(Color.valueOf("ffc099"));
|
drawer = new DrawSmelter(Color.valueOf("ffc099"));
|
||||||
|
ambientSound = Sounds.smelter;
|
||||||
|
ambientSoundVolume = 0.07f;
|
||||||
|
|
||||||
consumes.items(with(Items.lead, 1, Items.sand, 1));
|
consumes.items(with(Items.lead, 1, Items.sand, 1));
|
||||||
consumes.power(0.60f);
|
consumes.power(0.60f);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class SpawnPathFilter extends GenerateFilter{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void apply(Tiles tiles, GenerateInput in){
|
public void apply(Tiles tiles, GenerateInput in){
|
||||||
Tile core = null;
|
var cores = new Seq<Tile>();
|
||||||
var spawns = new Seq<Tile>();
|
var spawns = new Seq<Tile>();
|
||||||
|
|
||||||
for(Tile tile : tiles){
|
for(Tile tile : tiles){
|
||||||
@@ -39,11 +39,11 @@ public class SpawnPathFilter extends GenerateFilter{
|
|||||||
spawns.add(tile);
|
spawns.add(tile);
|
||||||
}
|
}
|
||||||
if(tile.block() instanceof CoreBlock && tile.team() != Vars.state.rules.waveTeam){
|
if(tile.block() instanceof CoreBlock && tile.team() != Vars.state.rules.waveTeam){
|
||||||
core = tile;
|
cores.add(tile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(core != null && spawns.any()){
|
for(var core : cores){
|
||||||
for(var spawn : spawns){
|
for(var spawn : spawns){
|
||||||
var path = Astar.pathfind(core.x, core.y, spawn.x, spawn.y, t -> t.solid() ? 100 : 1, Astar.manhattan, tile -> !tile.floor().isDeep());
|
var path = Astar.pathfind(core.x, core.y, spawn.x, spawn.y, t -> t.solid() ? 100 : 1, Astar.manhattan, tile -> !tile.floor().isDeep());
|
||||||
for(var tile : path){
|
for(var tile : path){
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ public class Generators{
|
|||||||
base.each((x, y) -> tint.setRaw(x, y, Color.muli(tint.getRaw(x, y), stat.color.rgba())));
|
base.each((x, y) -> tint.setRaw(x, y, Color.muli(tint.getRaw(x, y), stat.color.rgba())));
|
||||||
|
|
||||||
//outline the image
|
//outline the image
|
||||||
Pixmap container = new Pixmap(38, 38);
|
Pixmap container = new Pixmap(tint.width + 6, tint.height + 6);
|
||||||
container.draw(base, 3, 3, true);
|
container.draw(base, 3, 3, true);
|
||||||
base = container.outline(Pal.gray, 3);
|
base = container.outline(Pal.gray, 3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user