Reconstructor fixes

This commit is contained in:
Anuken 2020-06-13 18:20:10 -04:00
parent c74d2f8cf2
commit f365d8519b
7 changed files with 26 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 127 KiB

View File

@ -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},
};
}};

View File

@ -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;

View File

@ -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);
}

View File

@ -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);
}
}

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=e95eb53c39027f21e905952937ae4450bde62c18
archash=32cdefdd1bc69da409eee465d854727e89dadb09