mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-14 10:50:58 -07:00
More WIP sector tech tree changes
This commit is contained in:
parent
913104b774
commit
cc7c2dd79c
8 changed files with 9 additions and 53 deletions
|
|
@ -1 +1 @@
|
|||
{presets:{windsweptIslands:97,stainedMountains:223,weatheredChannels:165,craters:175,coastline:164,navalFortress:37,frontier:215,groundZero:15,mycelialBastion:142,atolls:214,ruinousShores:41,overgrowth:86,testingGrounds:99,frozenForest:219,saltFlats:98,taintedWoods:145,infestedCanyons:85,desolateRift:123,nuclearComplex:228,facility32m:1,planetaryTerminal:93,impact0078:270,seaPort:216,geothermalStronghold:264,cruxscape:54,fungalPass:221,tarFields:101,biomassFacility:23},attackSectors:[0,2,5,6,10,11,12,13,16,19,24,25,27,28,30,31,33,34,36,38,47,48,49,51,56,57,59,60,66,67,68,70,71,75,76,78,84,90,104,106,110,114,115,121,124,125,127,128,129,133,138,148,149,154,158,180,182,200,202,204,210,224,225,229,233,234,235,241,243,248,254,255,257,259,265]}
|
||||
{presets:{windsweptIslands:97,stainedMountains:223,weatheredChannels:166,craters:175,coastline:164,navalFortress:165,frontier:215,groundZero:15,mycelialBastion:142,facility32m:268,atolls:217,overgrowth:86,testingGrounds:99,frozenForest:219,saltFlats:98,taintedWoods:145,infestedCanyons:85,desolateRift:123,nuclearComplex:228,ruinousShores:41,planetaryTerminal:93,impact0078:270,seaPort:216,geothermalStronghold:264,cruxscape:54,fungalPass:221,tarFields:72,biomassFacility:23},attackSectors:[0,2,5,6,10,11,12,13,16,19,24,25,27,28,30,31,33,34,36,47,48,49,51,56,57,59,60,66,67,68,70,71,75,76,78,82,84,90,104,106,110,114,115,121,124,125,127,128,129,133,138,148,149,154,158,180,182,200,202,204,210,224,225,229,233,234,235,241,243,248,254,255,257,259,265]}
|
||||
|
|
@ -485,7 +485,13 @@ public class SerpuloTechTree{
|
|||
new Research(cultivator),
|
||||
new Research(coalCentrifuge)
|
||||
), () -> {
|
||||
node(atolls, Seq.with(
|
||||
new SectorComplete(seaPort),
|
||||
new Research(multiplicativeReconstructor),
|
||||
new Research(mega)
|
||||
), () -> {
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
node(overgrowth, Seq.with(
|
||||
|
|
@ -507,14 +513,6 @@ public class SerpuloTechTree{
|
|||
), () -> {
|
||||
|
||||
});
|
||||
|
||||
node(atolls, Seq.with(
|
||||
new SectorComplete(windsweptIslands),
|
||||
new Research(multiplicativeReconstructor),
|
||||
new Research(mega)
|
||||
), () -> {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@ public class BlankPlanetGenerator extends PlanetGenerator{
|
|||
return Color.white;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateSector(Sector sector){
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addWeather(Sector sector, Rules rules){
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ import mindustry.ctype.*;
|
|||
import mindustry.game.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.g3d.*;
|
||||
import mindustry.graphics.g3d.PlanetGrid.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.type.Weather.*;
|
||||
import mindustry.ui.*;
|
||||
|
|
@ -28,32 +27,7 @@ public abstract class PlanetGenerator extends BasicGenerator implements HexMeshe
|
|||
|
||||
/** Should generate sector bases for a planet. */
|
||||
public void generateSector(Sector sector){
|
||||
Ptile tile = sector.tile;
|
||||
|
||||
boolean any = false;
|
||||
float noise = Noise.snoise3(tile.v.x, tile.v.y, tile.v.z, 0.001f, 0.5f);
|
||||
|
||||
if(noise > 0.027){
|
||||
any = true;
|
||||
}
|
||||
|
||||
if(noise < 0.15){
|
||||
for(Ptile other : tile.tiles){
|
||||
//no sectors near start sector!
|
||||
if(sector.planet.getSector(other).id == sector.planet.startSector){
|
||||
return;
|
||||
}
|
||||
|
||||
if(sector.planet.getSector(other).generateEnemyBase){
|
||||
any = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(any){
|
||||
sector.generateEnemyBase = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void getLockedText(Sector hovered, StringBuilder out){
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import mindustry.ai.*;
|
|||
import mindustry.content.*;
|
||||
import mindustry.game.*;
|
||||
import mindustry.maps.generators.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.*;
|
||||
import mindustry.world.blocks.environment.*;
|
||||
import mindustry.world.meta.*;
|
||||
|
|
@ -34,11 +33,6 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
|||
defaultLoadout = Loadouts.basicBastion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateSector(Sector sector){
|
||||
//no bases right now
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getHeight(Vec3 position){
|
||||
return Mathf.pow(rawHeight(position), heightPow) * heightMult;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
|
|||
|
||||
BaseGenerator basegen = new BaseGenerator();
|
||||
float scl = 5f;
|
||||
float waterOffset = 0.07f;
|
||||
float waterOffset = 0.05f;
|
||||
boolean genLakes = false;
|
||||
|
||||
Block[][] arr =
|
||||
|
|
|
|||
|
|
@ -24,11 +24,6 @@ public class TantrosPlanetGenerator extends PlanetGenerator{
|
|||
baseSeed = 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateSector(Sector sector){
|
||||
//no bases
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getHeight(Vec3 position){
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ org.gradle.caching=true
|
|||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
android.enableR8.fullMode=false
|
||||
archash=23264f9514
|
||||
archash=67b872ff4d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue