Atolls sector map submission / Windswept Islands rework submission

This commit is contained in:
Anuken
2024-09-15 12:24:52 -04:00
parent db52650bd5
commit 20a7f3f300
12 changed files with 23 additions and 11 deletions

View File

@@ -834,6 +834,7 @@ sector.planetaryTerminal.name = Planetary Launch Terminal
sector.coastline.name = Coastline sector.coastline.name = Coastline
sector.navalFortress.name = Naval Fortress sector.navalFortress.name = Naval Fortress
sector.polarAerodrome.name = Polar Aerodrome sector.polarAerodrome.name = Polar Aerodrome
sector.atolls.name = Atolls
sector.groundZero.description = The optimal location to begin once more. Low enemy threat. Few resources.\nGather as much lead and copper as possible.\nMove on. sector.groundZero.description = The optimal location to begin once more. Low enemy threat. Few resources.\nGather as much lead and copper as possible.\nMove on.
sector.frozenForest.description = Even here, closer to mountains, the spores have spread. The frigid temperatures cannot contain them forever.\n\nBegin the venture into power. Build combustion generators. Learn to use menders. sector.frozenForest.description = Even here, closer to mountains, the spores have spread. The frigid temperatures cannot contain them forever.\n\nBegin the venture into power. Build combustion generators. Learn to use menders.
@@ -856,6 +857,7 @@ sector.navalFortress.description = The enemy has established a base on a remote,
#do not translate #do not translate
sector.facility32m.description = WIP, map submission by Stormride_R sector.facility32m.description = WIP, map submission by Stormride_R
sector.taintedWoods.description = WIP, map submission by Stormride_R sector.taintedWoods.description = WIP, map submission by Stormride_R
sector.atolls.description = WIP, map submission by Stormride_R
sector.infestedCanyons.description = WIP, map submission by Skeledragon sector.infestedCanyons.description = WIP, map submission by Skeledragon
sector.polarAerodrome.description = WIP, map submission by hhh i 17 sector.polarAerodrome.description = WIP, map submission by hhh i 17

Binary file not shown.

View File

@@ -326,7 +326,7 @@ public class CommandAI extends AIController{
void finishPath(){ void finishPath(){
//the enter payload command never finishes until they are actually accepted //the enter payload command never finishes until they are actually accepted
if(command == UnitCommand.enterPayloadCommand && commandQueue.size == 0 && targetPos != null && world.buildWorld(targetPos.x, targetPos.y) != null && world.buildWorld(targetPos.x, targetPos.y).block.acceptsPayloads){ if(command == UnitCommand.enterPayloadCommand && commandQueue.size == 0 && targetPos != null && world.buildWorld(targetPos.x, targetPos.y) != null && world.buildWorld(targetPos.x, targetPos.y).block.acceptsUnitPayloads){
return; return;
} }

View File

@@ -8,7 +8,7 @@ public class SectorPresets{
public static SectorPreset public static SectorPreset
groundZero, groundZero,
craters, biomassFacility, taintedWoods, frozenForest, ruinousShores, facility32m, windsweptIslands, stainedMountains, tarFields, craters, biomassFacility, taintedWoods, frozenForest, ruinousShores, facility32m, windsweptIslands, stainedMountains, tarFields,
fungalPass, infestedCanyons, extractionOutpost, polarAerodrome, saltFlats, overgrowth, fungalPass, infestedCanyons, atolls, extractionOutpost, polarAerodrome, saltFlats, overgrowth,
impact0078, desolateRift, nuclearComplex, planetaryTerminal, impact0078, desolateRift, nuclearComplex, planetaryTerminal,
coastline, navalFortress, coastline, navalFortress,
@@ -97,6 +97,10 @@ public class SectorPresets{
difficulty = 4; difficulty = 4;
}}; }};
atolls = new SectorPreset("atolls", serpulo, 1){{
difficulty = 7;
}};
overgrowth = new SectorPreset("overgrowth", serpulo, 134){{ overgrowth = new SectorPreset("overgrowth", serpulo, 134){{
difficulty = 5; difficulty = 5;
}}; }};

View File

@@ -427,8 +427,8 @@ public class SerpuloTechTree{
}); });
node(additiveReconstructor, Seq.with(new SectorComplete(biomassFacility)), () -> { node(additiveReconstructor, Seq.with(new SectorComplete(biomassFacility)), () -> {
node(multiplicativeReconstructor, () -> { node(multiplicativeReconstructor, Seq.with(new SectorComplete(overgrowth)), () -> {
node(exponentialReconstructor, Seq.with(new SectorComplete(overgrowth)), () -> { node(exponentialReconstructor, () -> {
node(tetrativeReconstructor, () -> { node(tetrativeReconstructor, () -> {
}); });
@@ -565,7 +565,13 @@ public class SerpuloTechTree{
new Research(UnitTypes.mace), new Research(UnitTypes.mace),
new Research(UnitTypes.flare) new Research(UnitTypes.flare)
), () -> { ), () -> {
node(atolls, Seq.with(
new SectorComplete(windsweptIslands),
new Research(multiplicativeReconstructor),
new Research(mega)
), () -> {
});
}); });
}); });

View File

@@ -1058,7 +1058,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
if(ai.currentCommand() == UnitCommand.enterPayloadCommand){ if(ai.currentCommand() == UnitCommand.enterPayloadCommand){
var build = world.buildWorld(lineDest.getX(), lineDest.getY()); var build = world.buildWorld(lineDest.getX(), lineDest.getY());
if(build != null && build.block.acceptsPayloads && build.team == unit.team){ if(build != null && build.block.acceptsUnitPayloads && build.team == unit.team){
Drawf.selected(build, Pal.accent); Drawf.selected(build, Pal.accent);
} }
} }

View File

@@ -58,7 +58,7 @@ public class Block extends UnlockableContent implements Senseable{
/** If true, this block can output payloads; affects blending. */ /** If true, this block can output payloads; affects blending. */
public boolean outputsPayload = false; public boolean outputsPayload = false;
/** If true, this block can input payloads; affects unit payload enter behavior. */ /** If true, this block can input payloads; affects unit payload enter behavior. */
public boolean acceptsPayloads = false; public boolean acceptsUnitPayloads = false;
/** If true, payloads will attempt to move into this block. */ /** If true, payloads will attempt to move into this block. */
public boolean acceptsPayload = false; public boolean acceptsPayload = false;
/** Visual flag use for blending of certain transportation blocks. */ /** Visual flag use for blending of certain transportation blocks. */

View File

@@ -30,7 +30,7 @@ public abstract class BlockProducer extends PayloadBlock{
hasItems = true; hasItems = true;
solid = true; solid = true;
hasPower = true; hasPower = true;
acceptsPayloads = false; acceptsUnitPayloads = false;
rotate = true; rotate = true;
regionRotated1 = 1; regionRotated1 = 1;
@@ -69,7 +69,7 @@ public abstract class BlockProducer extends PayloadBlock{
addBar("progress", (BlockProducerBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.recipe() == null ? 0f : (entity.progress / entity.recipe().buildCost))); addBar("progress", (BlockProducerBuild entity) -> new Bar("bar.progress", Pal.ammo, () -> entity.recipe() == null ? 0f : (entity.progress / entity.recipe().buildCost)));
} }
public abstract class BlockProducerBuild extends PayloadBlockBuild<BuildPayload>{ public abstract class BlockProducerBuild extends PayloadBlockBuild<BuildPayload>{
public float progress, time, heat; public float progress, time, heat;

View File

@@ -25,7 +25,7 @@ public class PayloadBlock extends Block{
update = true; update = true;
sync = true; sync = true;
group = BlockGroup.payloads; group = BlockGroup.payloads;
acceptsPayloads = true; acceptsUnitPayloads = true;
envEnabled |= Env.space | Env.underwater; envEnabled |= Env.space | Env.underwater;
} }

View File

@@ -31,7 +31,7 @@ public class PayloadConveyor extends Block{
update = true; update = true;
outputsPayload = true; outputsPayload = true;
noUpdateDisabled = true; noUpdateDisabled = true;
acceptsPayloads = true; acceptsUnitPayloads = true;
priority = TargetPriority.transport; priority = TargetPriority.transport;
envEnabled |= Env.space | Env.underwater; envEnabled |= Env.space | Env.underwater;
sync = true; sync = true;

View File

@@ -37,7 +37,7 @@ public class PayloadSource extends PayloadBlock{
noUpdateDisabled = true; noUpdateDisabled = true;
clearOnDoubleTap = true; clearOnDoubleTap = true;
regionRotated1 = 1; regionRotated1 = 1;
acceptsPayloads = false; acceptsUnitPayloads = false;
commandable = true; commandable = true;
config(Block.class, (PayloadSourceBuild build, Block block) -> { config(Block.class, (PayloadSourceBuild build, Block block) -> {