mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 03:08:38 +07:00
Updated uCore
This commit is contained in:
parent
4be101e9fc
commit
63d5539427
@ -27,7 +27,7 @@ allprojects {
|
|||||||
gdxVersion = '1.9.8'
|
gdxVersion = '1.9.8'
|
||||||
roboVMVersion = '2.3.0'
|
roboVMVersion = '2.3.0'
|
||||||
aiVersion = '1.8.1'
|
aiVersion = '1.8.1'
|
||||||
uCoreVersion = '16ae6ef'
|
uCoreVersion = ' b6d22d5'
|
||||||
|
|
||||||
getVersionString = {
|
getVersionString = {
|
||||||
String buildVersion = getBuildVersion()
|
String buildVersion = getBuildVersion()
|
||||||
|
@ -105,7 +105,7 @@ public class WorldGenerator {
|
|||||||
|
|
||||||
for(int i = ores.size-1; i >= 0; i --){
|
for(int i = ores.size-1; i >= 0; i --){
|
||||||
OreEntry entry = ores.get(i);
|
OreEntry entry = ores.get(i);
|
||||||
if(entry.noise.octaveNoise2D(2, 0.7, 1f / (20 + i*4), x, y)/2f +
|
if(entry.noise.octaveNoise2D(2, 0.7, 1f / (2 + i*2), x, y)/2f +
|
||||||
entry.ridge.getValue(x, y, 1f / (28 + i*4)) >= 2.0f - entry.frequency*4.0f
|
entry.ridge.getValue(x, y, 1f / (28 + i*4)) >= 2.0f - entry.frequency*4.0f
|
||||||
&& entry.ridge.getValue(x+9999, y+9999, 1f/100f) > 0.4){
|
&& entry.ridge.getValue(x+9999, y+9999, 1f/100f) > 0.4){
|
||||||
tile.setFloor(entry.block);
|
tile.setFloor(entry.block);
|
||||||
|
@ -5,7 +5,7 @@ import io.anuke.ucore.noise.RidgedPerlin;
|
|||||||
import io.anuke.ucore.noise.Simplex;
|
import io.anuke.ucore.noise.Simplex;
|
||||||
|
|
||||||
public class ProcGen {
|
public class ProcGen {
|
||||||
public RidgedPerlin rid = new RidgedPerlin(1, 1, 1);
|
public RidgedPerlin rid = new RidgedPerlin(1, 1);
|
||||||
public Simplex sim = new Simplex();
|
public Simplex sim = new Simplex();
|
||||||
|
|
||||||
public Map generate(GenProperties props){
|
public Map generate(GenProperties props){
|
||||||
|
Loading…
Reference in New Issue
Block a user