.
This commit is contained in:
@@ -96,7 +96,7 @@ public class NetClient implements ApplicationListener{
|
|||||||
state.set(State.menu);
|
state.set(State.menu);
|
||||||
logic.reset();
|
logic.reset();
|
||||||
platform.updateRPC();
|
platform.updateRPC();
|
||||||
player.name = Core.settings.getString("name");
|
player.name(Core.settings.getString("name"));
|
||||||
|
|
||||||
if(quiet) return;
|
if(quiet) return;
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ public class Saves{
|
|||||||
}
|
}
|
||||||
slot.save();
|
slot.save();
|
||||||
lastSectorSave = slot;
|
lastSectorSave = slot;
|
||||||
Log.info("Saving " + slot.getName());
|
|
||||||
Core.settings.putSave("last-sector-save", slot.getName());
|
Core.settings.putSave("last-sector-save", slot.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import arc.util.*;
|
|||||||
import arc.util.noise.*;
|
import arc.util.noise.*;
|
||||||
import mindustry.*;
|
import mindustry.*;
|
||||||
import mindustry.content.*;
|
import mindustry.content.*;
|
||||||
import mindustry.game.*;
|
import mindustry.maps.zonegen.*;
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
|
|
||||||
@@ -120,7 +120,10 @@ public class TestPlanetGenerator implements PlanetGenerator{
|
|||||||
tiles.each((x, y) -> tiles.get(x, y).setBlock(!read.get(x, y) ? Blocks.air : tiles.get(x, y).floor().wall));
|
tiles.each((x, y) -> tiles.get(x, y).setBlock(!read.get(x, y) ? Blocks.air : tiles.get(x, y).floor().wall));
|
||||||
distort(0.009f, 12f);
|
distort(0.009f, 12f);
|
||||||
|
|
||||||
tiles.get(tiles.width /2, tiles.height /2).setBlock(Blocks.coreShard, Team.sharded);
|
OvergrowthGenerator gen = new OvergrowthGenerator(tiles.width, tiles.height);
|
||||||
|
gen.decorate(tiles);
|
||||||
|
|
||||||
|
//tiles.get(tiles.width /2, tiles.height /2).setBlock(Blocks.coreShard, Team.sharded);
|
||||||
}
|
}
|
||||||
|
|
||||||
void distort(float scl, float mag){
|
void distort(float scl, float mag){
|
||||||
|
|||||||
@@ -23,10 +23,12 @@ public class OvergrowthGenerator extends BasicGenerator{
|
|||||||
ores(tiles);
|
ores(tiles);
|
||||||
//terrain(tiles, Blocks.sporePine, 70f, 1.4f, 1f);
|
//terrain(tiles, Blocks.sporePine, 70f, 1.4f, 1f);
|
||||||
|
|
||||||
int rand = 40;
|
//int rand = 40;
|
||||||
int border = 25;
|
//int border = 25;
|
||||||
int spawnX = Mathf.clamp(30 + Mathf.range(rand), border, width - border), spawnY = Mathf.clamp(30 + Mathf.range(rand), border, height - border);
|
//int spawnX = Mathf.clamp(30 + Mathf.range(rand), border, width - border), spawnY = Mathf.clamp(30 + Mathf.range(rand), border, height - border);
|
||||||
int endX = Mathf.clamp(width - 30 + Mathf.range(rand), border, width - border), endY = Mathf.clamp(height - 30 + Mathf.range(rand), border, height - border);
|
//int endX = Mathf.clamp(width - 30 + Mathf.range(rand), border, width - border), endY = Mathf.clamp(height - 30 + Mathf.range(rand), border, height - border);
|
||||||
|
|
||||||
|
int radius = (int)(width / 2 / Mathf.sqrt3);
|
||||||
|
|
||||||
brush(tiles, pathfind(tiles, spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 5f : 0f) + (float)sim.octaveNoise2D(1, 1, 1f / 50f, tile.x, tile.y) * 50, manhattan), 6);
|
brush(tiles, pathfind(tiles, spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 5f : 0f) + (float)sim.octaveNoise2D(1, 1, 1f / 50f, tile.x, tile.y) * 50, manhattan), 6);
|
||||||
brush(tiles, pathfind(tiles, spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 4f : 0f) + (float)sim.octaveNoise2D(1, 1, 1f / 90f, tile.x+999, tile.y) * 70, manhattan), 5);
|
brush(tiles, pathfind(tiles, spawnX, spawnY, endX, endY, tile -> (tile.solid() ? 4f : 0f) + (float)sim.octaveNoise2D(1, 1, 1f / 90f, tile.x+999, tile.y) * 70, manhattan), 5);
|
||||||
@@ -40,6 +42,7 @@ public class OvergrowthGenerator extends BasicGenerator{
|
|||||||
//scatter(tiles, Blocks.sporePine, Blocks.whiteTreeDead, 1f);
|
//scatter(tiles, Blocks.sporePine, Blocks.whiteTreeDead, 1f);
|
||||||
|
|
||||||
tiles.getn(endX, endY).setOverlay(Blocks.spawn);
|
tiles.getn(endX, endY).setOverlay(Blocks.spawn);
|
||||||
|
loadout = Loadouts.advancedShard;
|
||||||
schematics.placeLoadout(loadout, spawnX, spawnY);
|
schematics.placeLoadout(loadout, spawnX, spawnY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ public class SolidPump extends Pump{
|
|||||||
tile.entity.liquids().add(result, maxPump);
|
tile.entity.liquids().add(result, maxPump);
|
||||||
entity.lastPump = maxPump;
|
entity.lastPump = maxPump;
|
||||||
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, 0.02f);
|
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, 0.02f);
|
||||||
if(tile.entity.timer.get(timerContentCheck, 10)) useContent(tile, result);
|
if(tile.entity.timer(timerContentCheck, 10)) useContent(tile, result);
|
||||||
if(Mathf.chance(entity.delta() * updateEffectChance))
|
if(Mathf.chance(entity.delta() * updateEffectChance))
|
||||||
updateEffect.at(entity.getX() + Mathf.range(size * 2f), entity.getY() + Mathf.range(size * 2f));
|
updateEffect.at(entity.getX() + Mathf.range(size * 2f), entity.getY() + Mathf.range(size * 2f));
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=51a9bcc4ae9248f3415b0ff5fa639b10a719228e
|
archash=f1e9b0b63e8d99047324dea2d982a00ba6364497
|
||||||
|
|||||||
Reference in New Issue
Block a user