Tech tree things

This commit is contained in:
Anuken 2022-05-06 14:53:44 -04:00
parent c73e364b55
commit d4411fd234
2 changed files with 20 additions and 14 deletions

View File

@ -1980,7 +1980,7 @@ public class Blocks{
}}; }};
unitCargoLoader = new UnitCargoLoader("unit-cargo-loader"){{ unitCargoLoader = new UnitCargoLoader("unit-cargo-loader"){{
requirements(Category.distribution, with(Items.silicon, 80, Items.carbide, 50, Items.oxide, 50)); requirements(Category.distribution, with(Items.silicon, 80, Items.thorium, 50, Items.oxide, 50));
size = 3; size = 3;
buildTime = 60f * 8f; buildTime = 60f * 8f;
@ -1988,7 +1988,7 @@ public class Blocks{
consumePower(8f / 60f); consumePower(8f / 60f);
//intentionally set absurdly high to make this block not overpowered //intentionally set absurdly high to make this block not overpowered
consumeLiquid(Liquids.gallium, 20f / 60f); consumeLiquid(Liquids.nitrogen, 20f / 60f);
itemCapacity = 200; itemCapacity = 200;
}}; }};
@ -4211,7 +4211,7 @@ public class Blocks{
}}; }};
shipFabricator = new UnitFactory("ship-fabricator"){{ shipFabricator = new UnitFactory("ship-fabricator"){{
requirements(Category.units, with(Items.silicon, 200, Items.graphite, 300)); requirements(Category.units, with(Items.silicon, 200, Items.graphite, 300, Items.tungsten, 60));
size = 3; size = 3;
configurable = false; configurable = false;
plans.add(new UnitPlan(UnitTypes.elude, 60f * 40f, with(Items.graphite, 40f, Items.silicon, 70f))); plans.add(new UnitPlan(UnitTypes.elude, 60f * 40f, with(Items.graphite, 40f, Items.silicon, 70f)));
@ -4309,7 +4309,7 @@ public class Blocks{
}};*/ }};*/
tankAssembler = new UnitAssembler("tank-assembler"){{ tankAssembler = new UnitAssembler("tank-assembler"){{
requirements(Category.units, with(Items.thorium, 500, Items.oxide, 250, Items.tungsten, 500, Items.silicon, 500)); requirements(Category.units, with(Items.thorium, 500, Items.oxide, 150, Items.tungsten, 500, Items.silicon, 500));
regionSuffix = "-dark"; regionSuffix = "-dark";
size = 5; size = 5;
plans.add( plans.add(
@ -4325,12 +4325,14 @@ public class Blocks{
//TODO requirements //TODO requirements
shipAssembler = new UnitAssembler("ship-assembler"){{ shipAssembler = new UnitAssembler("ship-assembler"){{
requirements(Category.units, with(Items.beryllium, 700, Items.oxide, 300, Items.tungsten, 500, Items.silicon, 800)); requirements(Category.units, with(Items.beryllium, 700, Items.oxide, 200, Items.tungsten, 500, Items.silicon, 800, Items.thorium, 400));
regionSuffix = "-dark"; regionSuffix = "-dark";
size = 5; size = 5;
plans.add(new AssemblerUnitPlan(UnitTypes.quell, 60f * 60f, PayloadStack.list(UnitTypes.avert, 2, Blocks.berylliumWallLarge, 8))); plans.add(
new AssemblerUnitPlan(UnitTypes.quell, 60f * 60f, PayloadStack.list(UnitTypes.elude, 4, Blocks.berylliumWallLarge, 8)),
new AssemblerUnitPlan(UnitTypes.disrupt, 60f * 60f * 3f, PayloadStack.list(UnitTypes.locus, 6, Blocks.carbideWallLarge, 20))
);
areaSize = 13; areaSize = 13;
researchCostMultiplier = 0.4f;
consumePower(3f); consumePower(3f);
consumeLiquid(Liquids.nitrogen, 24f / 60f); consumeLiquid(Liquids.nitrogen, 24f / 60f);
@ -4338,21 +4340,23 @@ public class Blocks{
//TODO requirements //TODO requirements
mechAssembler = new UnitAssembler("mech-assembler"){{ mechAssembler = new UnitAssembler("mech-assembler"){{
requirements(Category.units, with(Items.graphite, 500, Items.thorium, 600, Items.oxide, 200, Items.tungsten, 500, Items.silicon, 900)); requirements(Category.units, with(Items.carbide, 500, Items.thorium, 600, Items.oxide, 200, Items.tungsten, 500, Items.silicon, 900));
regionSuffix = "-dark"; regionSuffix = "-dark";
size = 5; size = 5;
//TODO different reqs //TODO different reqs
plans.add(new AssemblerUnitPlan(UnitTypes.tecta, 60f * 60f, PayloadStack.list(UnitTypes.cleroi, 2, Blocks.tungstenWallLarge, 10))); plans.add(
new AssemblerUnitPlan(UnitTypes.tecta, 60f * 60f, PayloadStack.list(UnitTypes.merui, 4, Blocks.tungstenWallLarge, 10)),
new AssemblerUnitPlan(UnitTypes.collaris, 60f * 60f * 3f, PayloadStack.list(UnitTypes.cleroi, 6, Blocks.carbideWallLarge, 20))
);
consumePower(3f); consumePower(3f);
areaSize = 13; areaSize = 13;
researchCostMultiplier = 0.4f;
consumeLiquid(Liquids.nitrogen, 24f / 60f); consumeLiquid(Liquids.nitrogen, 24f / 60f);
}}; }};
//TODO requirements / only accept inputs //TODO requirements / only accept inputs
basicAssemblerModule = new UnitAssemblerModule("basic-assembler-module"){{ basicAssemblerModule = new UnitAssemblerModule("basic-assembler-module"){{
requirements(Category.units, with(Items.carbide, 400, Items.thorium, 500, Items.oxide, 300, Items.graphite, 500)); requirements(Category.units, with(Items.carbide, 500, Items.thorium, 500, Items.oxide, 300, Items.phaseFabric, 100));
consumePower(4f); consumePower(4f);
regionSuffix = "-dark"; regionSuffix = "-dark";

View File

@ -45,7 +45,7 @@ public class UnitTypes{
public static @EntityDef(value = {Unitc.class, Legsc.class}, legacy = true) UnitType spiroct, arkyid, toxopid; public static @EntityDef(value = {Unitc.class, Legsc.class}, legacy = true) UnitType spiroct, arkyid, toxopid;
//hover //hover
public static @EntityDef({Unitc.class, ElevationMovec.class}) UnitType elude; //TODO bad name public static @EntityDef({Unitc.class, ElevationMovec.class}) UnitType elude;
//air //air
public static @EntityDef({Unitc.class}) UnitType flare, eclipse, horizon, zenith, antumbra, public static @EntityDef({Unitc.class}) UnitType flare, eclipse, horizon, zenith, antumbra,
@ -3850,13 +3850,15 @@ public class UnitTypes{
keepVelocity = false; keepVelocity = false;
spawnUnit = new MissileUnitType("disrupt-missile"){{ spawnUnit = new MissileUnitType("disrupt-missile"){{
speed = 4.5f; speed = 4.6f;
maxRange = 5f; maxRange = 5f;
outlineColor = Pal.darkOutline; outlineColor = Pal.darkOutline;
health = 70; health = 70;
homingDelay = 10f; homingDelay = 10f;
lowAltitude = true; lowAltitude = true;
engineSize = 3f; engineSize = 3f;
engineColor = trailColor = Pal.sapBulletBack;
engineLayer = Layer.effect;
deathExplosionEffect = Fx.none; deathExplosionEffect = Fx.none;
parts.add(new ShapePart(){{ parts.add(new ShapePart(){{
@ -3884,7 +3886,7 @@ public class UnitTypes{
mirror = false; mirror = false;
reload = 1f; reload = 1f;
shootOnDeath = true; shootOnDeath = true;
bullet = new ExplosionBulletType(120f, 25f){{ bullet = new ExplosionBulletType(140f, 25f){{
suppressionRange = 140f; suppressionRange = 140f;
shootEffect = new ExplosionEffect(){{ shootEffect = new ExplosionEffect(){{
lifetime = 50f; lifetime = 50f;