mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Fixed #7752
This commit is contained in:
parent
a003e0b31e
commit
514f50a411
@ -5488,10 +5488,9 @@ public class Blocks{
|
||||
researchCostMultiplier = 0.4f;
|
||||
|
||||
consumePower(3f);
|
||||
consumeLiquid(Liquids.cyanogen, 24f / 60f);
|
||||
consumeLiquid(Liquids.cyanogen, 9f / 60f);
|
||||
}};
|
||||
|
||||
//TODO requirements
|
||||
shipAssembler = new UnitAssembler("ship-assembler"){{
|
||||
requirements(Category.units, with(Items.carbide, 100, Items.oxide, 200, Items.tungsten, 500, Items.silicon, 800, Items.thorium, 400));
|
||||
regionSuffix = "-dark";
|
||||
@ -5503,23 +5502,22 @@ public class Blocks{
|
||||
areaSize = 13;
|
||||
|
||||
consumePower(3f);
|
||||
consumeLiquid(Liquids.cyanogen, 6f / 60f);
|
||||
consumeLiquid(Liquids.cyanogen, 12f / 60f);
|
||||
}};
|
||||
|
||||
//TODO requirements
|
||||
mechAssembler = new UnitAssembler("mech-assembler"){{
|
||||
requirements(Category.units, with(Items.carbide, 200, Items.thorium, 600, Items.oxide, 200, Items.tungsten, 500, Items.silicon, 900));
|
||||
regionSuffix = "-dark";
|
||||
size = 5;
|
||||
//TODO different reqs
|
||||
plans.add(
|
||||
new AssemblerUnitPlan(UnitTypes.tecta, 60f * 60f, PayloadStack.list(UnitTypes.merui, 4, Blocks.tungstenWallLarge, 10)),
|
||||
new AssemblerUnitPlan(UnitTypes.tecta, 60f * 70f, PayloadStack.list(UnitTypes.merui, 6, Blocks.tungstenWallLarge, 12)),
|
||||
new AssemblerUnitPlan(UnitTypes.collaris, 60f * 60f * 3f, PayloadStack.list(UnitTypes.cleroi, 6, Blocks.carbideWallLarge, 20))
|
||||
);
|
||||
areaSize = 13;
|
||||
|
||||
consumePower(3f);
|
||||
consumeLiquid(Liquids.cyanogen, 9f / 60f);
|
||||
consumePower(3.5f);
|
||||
consumeLiquid(Liquids.cyanogen, 12f / 60f);
|
||||
}};
|
||||
|
||||
//TODO requirements / only accept inputs
|
||||
|
@ -272,6 +272,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
//region utility methods
|
||||
|
||||
public boolean isDiscovered(Team viewer){
|
||||
if(viewer == null) return true;
|
||||
if(block.size <= 2){
|
||||
return fogControl.isDiscovered(viewer, tile.x, tile.y);
|
||||
}else{
|
||||
|
@ -77,6 +77,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
rotateMove(movement);
|
||||
}
|
||||
}
|
||||
|
||||
public void moveAt(Vec2 vector){
|
||||
moveAt(vector, type.accel);
|
||||
}
|
||||
@ -84,6 +85,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
public void approach(Vec2 vector){
|
||||
vel.approachDelta(vector, type.accel * speed());
|
||||
}
|
||||
|
||||
public void rotateMove(Vec2 vec){
|
||||
moveAt(Tmp.v2.trns(rotation, vec.len()));
|
||||
|
||||
|
@ -25,4 +25,4 @@ org.gradle.caching=true
|
||||
#used for slow jitpack builds; TODO see if this actually works
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
archash=8793e01874
|
||||
archash=5a1cbb8b59
|
||||
|
Loading…
Reference in New Issue
Block a user