space payloads

This commit is contained in:
Anuken
2021-09-05 19:04:04 -04:00
parent dedfd8efd3
commit 00eca00f11
3 changed files with 5 additions and 2 deletions

View File

@@ -84,8 +84,8 @@ public class Planets implements ContentList{
generator = new SerpuloPlanetGenerator();
meshLoader = () -> new HexMesh(this, 6);
cloudMeshLoader = () -> new MultiMesh(
new HexSkyMesh(this, 11, 0.15f, 0.13f, 5, new Color().set(Pal.spore).mul(0.9f).a(0.75f), 2, 0.5f, 1f, 0.38f),
new HexSkyMesh(this, 1, 0.6f, 0.16f, 5, Color.white.cpy().lerp(Pal.spore, 0.6f).a(0.75f), 2, 0.5f, 1.1f, 0.41f)
new HexSkyMesh(this, 11, 0.15f, 0.13f, 5, new Color().set(Pal.spore).mul(0.9f).a(0.75f), 2, 0.45f, 0.9f, 0.38f),
new HexSkyMesh(this, 1, 0.6f, 0.16f, 5, Color.white.cpy().lerp(Pal.spore, 0.55f).a(0.75f), 2, 0.45f, 1f, 0.41f)
);
atmosphereColor = Color.valueOf("3c1b8f");
atmosphereRadIn = 0.02f;

View File

@@ -30,6 +30,7 @@ public class PayloadConveyor extends Block{
update = true;
outputsPayload = true;
noUpdateDisabled = true;
envEnabled |= Env.space;
sync = true;
}

View File

@@ -9,6 +9,7 @@ import mindustry.annotations.Annotations.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.world.*;
import mindustry.world.meta.*;
import static mindustry.Vars.*;
@@ -24,6 +25,7 @@ public class PayloadBlock extends Block{
update = true;
sync = true;
envEnabled |= Env.space;
}
public static boolean blends(Building build, int direction){