Fixed ridiculous unit cost multipliers
This commit is contained in:
@@ -3542,6 +3542,7 @@ public class Blocks{
|
||||
tankAssembler = new UnitAssembler("tank-assembler"){{
|
||||
requirements(Category.units, with(Items.graphite, 600, Items.beryllium, 600, Items.oxide, 300, Items.tungsten, 500));
|
||||
size = 5;
|
||||
//TODO remove ducts and crushers, replace with 2-3 high cost speicla blocks with silicon requirements
|
||||
plans.add(new AssemblerUnitPlan(UnitTypes.vanquish, 60f * 50f, BlockStack.list(Blocks.tungstenWallLarge, 12, Blocks.duct, 14, Blocks.cliffCrusher, 12)));
|
||||
consumes.power(3f);
|
||||
areaSize = 13;
|
||||
|
||||
@@ -171,6 +171,7 @@ public class UnitType extends UnlockableContent{
|
||||
public Color lightColor = Pal.powerLight;
|
||||
public boolean drawCell = true, drawItems = true, drawShields = true, drawBody = true;
|
||||
public int trailLength = 0;
|
||||
public float researchCostMultiplier = 50;
|
||||
public float trailX = 4f, trailY = -3f, trailScl = 1f;
|
||||
/** Whether the unit can heal blocks. Initialized in init() */
|
||||
public boolean canHeal = false;
|
||||
@@ -751,7 +752,7 @@ public class UnitType extends UnlockableContent{
|
||||
if(stacks != null){
|
||||
ItemStack[] out = new ItemStack[stacks.length];
|
||||
for(int i = 0; i < out.length; i++){
|
||||
out[i] = new ItemStack(stacks[i].item, UI.roundAmount((int)(Math.pow(stacks[i].amount, 1.1) * 50)));
|
||||
out[i] = new ItemStack(stacks[i].item, UI.roundAmount((int)(Math.pow(stacks[i].amount, 1.1) * researchCostMultiplier)));
|
||||
}
|
||||
|
||||
cachedRequirements = out;
|
||||
|
||||
@@ -14,5 +14,6 @@ public class ErekirUnitType extends UnitType{
|
||||
outlineColor = Pal.darkOutline;
|
||||
envDisabled = Env.space;
|
||||
unitBasedDefaultController = u -> !playerControllable || u.team.isAI() ? defaultController.get() : new CommandAI();
|
||||
researchCostMultiplier = 10f;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user