Erekir tech tree tweaks
This commit is contained in:
@@ -2181,6 +2181,7 @@ public class Blocks{
|
|||||||
hasLiquids = true;
|
hasLiquids = true;
|
||||||
outputLiquid = new LiquidStack(Liquids.water, 5f / 60f / 9f);
|
outputLiquid = new LiquidStack(Liquids.water, 5f / 60f / 9f);
|
||||||
liquidCapacity = 20f;
|
liquidCapacity = 20f;
|
||||||
|
researchCostMultiplier = 0.2f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO rename
|
//TODO rename
|
||||||
@@ -2386,6 +2387,7 @@ public class Blocks{
|
|||||||
tier = 4;
|
tier = 4;
|
||||||
size = 2;
|
size = 2;
|
||||||
range = 4;
|
range = 4;
|
||||||
|
researchCostMultiplier = 0.2f;
|
||||||
|
|
||||||
consumes.liquid(Liquids.hydrogen, 0.25f / 60f).boost();
|
consumes.liquid(Liquids.hydrogen, 0.25f / 60f).boost();
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ public class ErekirTechTree{
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
node(breach, () -> {
|
node(breach, Seq.with(new Research(siliconArcFurnace)), () -> {
|
||||||
node(berylliumWall, () -> {
|
node(berylliumWall, () -> {
|
||||||
node(berylliumWallLarge, () -> {
|
node(berylliumWallLarge, () -> {
|
||||||
|
|
||||||
|
|||||||
@@ -2702,6 +2702,7 @@ public class UnitTypes{
|
|||||||
lowAltitude = false;
|
lowAltitude = false;
|
||||||
mineWalls = true;
|
mineWalls = true;
|
||||||
mineFloor = false;
|
mineFloor = false;
|
||||||
|
mineHardnessScaling = false;
|
||||||
flying = true;
|
flying = true;
|
||||||
mineSpeed = 4f;
|
mineSpeed = 4f;
|
||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
@@ -2763,6 +2764,7 @@ public class UnitTypes{
|
|||||||
mineWalls = true;
|
mineWalls = true;
|
||||||
targetAir = false;
|
targetAir = false;
|
||||||
mineFloor = false;
|
mineFloor = false;
|
||||||
|
mineHardnessScaling = false;
|
||||||
mineSpeed = 5f;
|
mineSpeed = 5f;
|
||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
buildSpeed = 1.4f;
|
buildSpeed = 1.4f;
|
||||||
@@ -2822,6 +2824,7 @@ public class UnitTypes{
|
|||||||
targetAir = false;
|
targetAir = false;
|
||||||
mineWalls = true;
|
mineWalls = true;
|
||||||
mineFloor = false;
|
mineFloor = false;
|
||||||
|
mineHardnessScaling = false;
|
||||||
mineSpeed = 6f;
|
mineSpeed = 6f;
|
||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
buildSpeed = 2f;
|
buildSpeed = 2f;
|
||||||
|
|||||||
@@ -89,13 +89,13 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc{
|
|||||||
mineTile = null;
|
mineTile = null;
|
||||||
mineTimer = 0f;
|
mineTimer = 0f;
|
||||||
}else if(mining() && item != null){
|
}else if(mining() && item != null){
|
||||||
mineTimer += Time.delta *type.mineSpeed;
|
mineTimer += Time.delta * type.mineSpeed;
|
||||||
|
|
||||||
if(Mathf.chance(0.06 * Time.delta)){
|
if(Mathf.chance(0.06 * Time.delta)){
|
||||||
Fx.pulverizeSmall.at(mineTile.worldx() + Mathf.range(tilesize / 2f), mineTile.worldy() + Mathf.range(tilesize / 2f), 0f, item.color);
|
Fx.pulverizeSmall.at(mineTile.worldx() + Mathf.range(tilesize / 2f), mineTile.worldy() + Mathf.range(tilesize / 2f), 0f, item.color);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mineTimer >= 50f + item.hardness*15f){
|
if(mineTimer >= 50f + (type.mineHardnessScaling ? item.hardness*15f : 15f)){
|
||||||
mineTimer = 0;
|
mineTimer = 0;
|
||||||
|
|
||||||
if(state.rules.sector != null && team() == state.rules.defaultTeam) state.rules.sector.info.handleProduction(item, 1);
|
if(state.rules.sector != null && team() == state.rules.defaultTeam) state.rules.sector.info.handleProduction(item, 1);
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ public class UnitType extends UnlockableContent{
|
|||||||
public AmmoType ammoType = new ItemAmmoType(Items.copper);
|
public AmmoType ammoType = new ItemAmmoType(Items.copper);
|
||||||
public int mineTier = -1;
|
public int mineTier = -1;
|
||||||
public boolean mineWalls = false, mineFloor = true;
|
public boolean mineWalls = false, mineFloor = true;
|
||||||
|
public boolean mineHardnessScaling = true;
|
||||||
public float buildSpeed = -1f, mineSpeed = 1f;
|
public float buildSpeed = -1f, mineSpeed = 1f;
|
||||||
public Sound mineSound = Sounds.minebeam;
|
public Sound mineSound = Sounds.minebeam;
|
||||||
public float mineSoundVolume = 0.6f;
|
public float mineSoundVolume = 0.6f;
|
||||||
|
|||||||
Reference in New Issue
Block a user