Unit assembler gallium requirement
This commit is contained in:
@@ -1163,7 +1163,8 @@ public class Blocks{
|
|||||||
|
|
||||||
craftTime = 60f * 2f;
|
craftTime = 60f * 2f;
|
||||||
|
|
||||||
outputLiquid = new LiquidStack(Liquids.gallium, 2f);
|
continuousLiquidOutput = true;
|
||||||
|
outputLiquid = new LiquidStack(Liquids.gallium, 1f / 60f);
|
||||||
outputItem = new ItemStack(Items.scrap, 1);
|
outputItem = new ItemStack(Items.scrap, 1);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -3315,8 +3316,7 @@ public class Blocks{
|
|||||||
//endregion
|
//endregion
|
||||||
//region units - erekir
|
//region units - erekir
|
||||||
|
|
||||||
//TODO 5x5?
|
//TODO requirements
|
||||||
//TODO completely unfinished
|
|
||||||
tankAssembler = new UnitAssembler("tank-assembler"){{
|
tankAssembler = new UnitAssembler("tank-assembler"){{
|
||||||
requirements(Category.units, with(Items.graphite, 10));
|
requirements(Category.units, with(Items.graphite, 10));
|
||||||
size = 5;
|
size = 5;
|
||||||
@@ -3325,6 +3325,9 @@ public class Blocks{
|
|||||||
consumes.power(2f);
|
consumes.power(2f);
|
||||||
areaSize = 13;
|
areaSize = 13;
|
||||||
|
|
||||||
|
//TODO unit production is rarely continuous, can be double
|
||||||
|
consumes.liquid(Liquids.gallium, 1f / 60f);
|
||||||
|
|
||||||
droneType = UnitTypes.assemblyDrone;
|
droneType = UnitTypes.assemblyDrone;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
@@ -226,6 +226,12 @@ public class UnitAssembler extends PayloadBlock{
|
|||||||
return plans.get(Math.min(currentTier, plans.size - 1));
|
return plans.get(Math.min(currentTier, plans.size - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean shouldConsume(){
|
||||||
|
//liquid is only consumed when building is being done
|
||||||
|
return enabled && !wasOccupied && Units.canCreate(team, plan().unit) && consumes.get(ConsumeType.payload).valid(this);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawSelect(){
|
public void drawSelect(){
|
||||||
for(var module : modules){
|
for(var module : modules){
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ android.useAndroidX=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
archash=309d2fc02d
|
archash=82157de87b
|
||||||
|
|||||||
Reference in New Issue
Block a user