Sound fixes
This commit is contained in:
@@ -509,6 +509,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);
|
||||||
@@ -525,6 +527,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);
|
||||||
@@ -538,6 +542,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){
|
||||||
|
|||||||
Reference in New Issue
Block a user