Reconstructor fixes
This commit is contained in:
@@ -1728,6 +1728,7 @@ public class Blocks implements ContentList{
|
||||
constructTime = 60f * 60f;
|
||||
|
||||
upgrades = new UnitType[][]{
|
||||
{UnitTypes.revenant, UnitTypes.lich},
|
||||
};
|
||||
}};
|
||||
|
||||
@@ -1742,6 +1743,7 @@ public class Blocks implements ContentList{
|
||||
constructTime = 60f * 60f * 3;
|
||||
|
||||
upgrades = new UnitType[][]{
|
||||
{UnitTypes.lich, UnitTypes.reaper},
|
||||
};
|
||||
}};
|
||||
|
||||
|
||||
@@ -414,6 +414,27 @@ public class UnitTypes implements ContentList{
|
||||
}});
|
||||
}};
|
||||
|
||||
lich = new UnitType("lich"){{
|
||||
speed = 1.1f;
|
||||
accel = 0.02f;
|
||||
drag = 0.05f;
|
||||
rotateSpeed = 2.5f;
|
||||
flying = true;
|
||||
lowAltitude = true;
|
||||
health = 75000;
|
||||
engineOffset = 38;
|
||||
engineSize = 7.3f;
|
||||
hitsize = 58f;
|
||||
|
||||
weapons.add(new Weapon(){{
|
||||
y = 1.5f;
|
||||
reload = 28f;
|
||||
alternate = true;
|
||||
ejectEffect = Fx.shellEjectSmall;
|
||||
bullet = Bullets.standardCopper;
|
||||
shootSound = Sounds.shoot;
|
||||
}});
|
||||
}};
|
||||
|
||||
vanguard = new UnitType("vanguard"){{
|
||||
speed = 1.3f;
|
||||
|
||||
@@ -111,7 +111,6 @@ public class Reconstructor extends UnitBlock{
|
||||
}
|
||||
|
||||
Draw.z(Layer.blockOver + 0.1f);
|
||||
Drawf.shadow(x, y, size * tilesize, 0.5f);
|
||||
Draw.rect(topRegion, x, y);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package mindustry.world.consumers;
|
||||
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import arc.util.ArcAnnotate.*;
|
||||
@@ -37,7 +38,7 @@ public class ConsumeItems extends Consume{
|
||||
public void build(Tilec tile, Table table){
|
||||
for(ItemStack stack : items){
|
||||
table.add(new ReqImage(new ItemImage(stack.item.icon(Cicon.medium), stack.amount),
|
||||
() -> tile.items() != null && tile.items().has(stack.item, stack.amount))).size(8 * 4).padRight(5);
|
||||
() -> tile.items() != null && tile.items().has(stack.item, stack.amount))).size(8 * 4).padRight(Mathf.digits(stack.amount) * 6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user