Fixed unit icons / New scatter AA turret
This commit is contained in:
@@ -72,7 +72,7 @@ public class Blocks implements ContentList{
|
||||
coreShard, coreFoundation, coreNucleus, vault, container, unloader, launchPad,
|
||||
|
||||
//turrets
|
||||
duo, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, spectre, meltdown,
|
||||
duo, scatter, hail, arc, wave, lancer, swarmer, salvo, fuse, ripple, cyclone, spectre, meltdown,
|
||||
|
||||
//units
|
||||
spiritFactory, phantomFactory, wraithFactory, ghoulFactory, revenantFactory, daggerFactory, crawlerFactory, titanFactory,
|
||||
@@ -1066,6 +1066,26 @@ public class Blocks implements ContentList{
|
||||
rotatespeed = 10f;
|
||||
}};
|
||||
|
||||
scatter = new BurstTurret("scatter"){{
|
||||
requirements(Category.turret, ItemStack.with(Items.copper, 170, Items.lead, 90), true);
|
||||
ammo(
|
||||
Items.scrap, Bullets.flakScrap,
|
||||
Items.lead, Bullets.flakLead
|
||||
);
|
||||
reload = 45f;
|
||||
range = 160f;
|
||||
size = 2;
|
||||
burstSpacing = 5f;
|
||||
shots = 2;
|
||||
|
||||
recoil = 2f;
|
||||
rotatespeed = 10f;
|
||||
inaccuracy = 18f;
|
||||
shootCone = 35f;
|
||||
|
||||
health = 220;
|
||||
}};
|
||||
|
||||
hail = new ArtilleryTurret("hail"){{
|
||||
requirements(Category.turret, ItemStack.with(Items.copper, 60, Items.graphite, 35));
|
||||
ammo(
|
||||
@@ -1138,6 +1158,7 @@ public class Blocks implements ContentList{
|
||||
shootCone = 40f;
|
||||
rotatespeed = 8f;
|
||||
powerUsed = 1f / 2f;
|
||||
targetAir = false;
|
||||
consumes.powerBuffered(80f);
|
||||
range = 80f;
|
||||
shootEffect = Fx.lightningShoot;
|
||||
@@ -1221,7 +1242,7 @@ public class Blocks implements ContentList{
|
||||
);
|
||||
xRand = 4f;
|
||||
reload = 8f;
|
||||
range = 145f;
|
||||
range = 160f;
|
||||
size = 3;
|
||||
recoil = 3f;
|
||||
rotatespeed = 10f;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class Bullets implements ContentList{
|
||||
artilleryDense, arilleryPlastic, artilleryPlasticFrag, artilleryHoming, artlleryIncendiary, artilleryExplosive, artilleryUnit,
|
||||
|
||||
//flak
|
||||
flakPlastic, flakExplosive, flakSurge,
|
||||
flakScrap, flakLead, flakPlastic, flakExplosive, flakSurge,
|
||||
|
||||
//missiles
|
||||
missileExplosive, missileIncendiary, missileSurge, missileJavelin, missileSwarm, missileRevenant,
|
||||
@@ -140,6 +140,25 @@ public class Bullets implements ContentList{
|
||||
frontColor = Pal.bulletYellow;
|
||||
}};
|
||||
|
||||
flakLead = new FlakBulletType(3.9f, 3){{
|
||||
shootEffect = Fx.shootSmall;
|
||||
bulletWidth = 6f;
|
||||
bulletHeight = 8f;
|
||||
hitEffect = Fx.flakExplosion;
|
||||
splashDamage = 25f;
|
||||
splashDamageRadius = 15f;
|
||||
}};
|
||||
|
||||
flakScrap = new FlakBulletType(3.5f, 3){{
|
||||
shootEffect = Fx.shootSmall;
|
||||
reloadMultiplier = 0.5f;
|
||||
bulletWidth = 6f;
|
||||
bulletHeight = 8f;
|
||||
hitEffect = Fx.flakExplosion;
|
||||
splashDamage = 16f;
|
||||
splashDamageRadius = 24f;
|
||||
}};
|
||||
|
||||
flakPlastic = new FlakBulletType(4f, 6){{
|
||||
splashDamageRadius = 50f;
|
||||
fragBullet = artilleryPlasticFrag;
|
||||
|
||||
@@ -51,16 +51,16 @@ public class WaveInfoDialog extends FloatingDialog{
|
||||
|
||||
cont.clear();
|
||||
|
||||
cont.table("button-disabled", main -> {
|
||||
cont.table("clear", main -> {
|
||||
main.pane(t -> table = t).growX().growY().get().setScrollingDisabled(true, false);
|
||||
main.row();
|
||||
main.addButton("$add", () -> {
|
||||
if(groups == null) groups = new Array<>();
|
||||
groups.add(new SpawnGroup(lastType));
|
||||
buildGroups();
|
||||
}).growX().height(80f);
|
||||
}).growX().height(70f);
|
||||
}).width(390f).growY();
|
||||
cont.table("button-disabled", m -> {
|
||||
cont.table("clear", m -> {
|
||||
m.add("Preview").color(Color.LIGHT_GRAY).growX().center().get().setAlignment(Align.center, Align.center);
|
||||
m.row();
|
||||
m.addButton("-", () -> {}).update(t -> {
|
||||
@@ -98,7 +98,7 @@ public class WaveInfoDialog extends FloatingDialog{
|
||||
|
||||
if(groups != null){
|
||||
for(SpawnGroup group : groups){
|
||||
table.table("button-disabled", t -> {
|
||||
table.table("clear", t -> {
|
||||
t.margin(6f).defaults().pad(2).padLeft(5f).growX().left();
|
||||
t.addButton(b -> {
|
||||
b.left();
|
||||
@@ -166,7 +166,7 @@ public class WaveInfoDialog extends FloatingDialog{
|
||||
t.remove();
|
||||
updateWaves();
|
||||
}).growX().pad(-6f).padTop(5);
|
||||
}).width(340f).pad(3);
|
||||
}).width(340f).pad(5);
|
||||
table.row();
|
||||
}
|
||||
}else{
|
||||
@@ -204,7 +204,7 @@ public class WaveInfoDialog extends FloatingDialog{
|
||||
|
||||
for(int i = start; i < displayed + start; i ++){
|
||||
int wave = i;
|
||||
preview.table("button-disabled", table -> {
|
||||
preview.table("underline", table -> {
|
||||
table.add(wave + "").color(Pal.accent).center().colspan(2).get().setAlignment(Align.center, Align.center);
|
||||
table.row();
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public class DatabaseDialog extends FloatingDialog{
|
||||
list.left();
|
||||
|
||||
int maxWidth = UIUtils.portrait() ? 7 : 13;
|
||||
int size = 8 * 4;
|
||||
int size = 8 * 5;
|
||||
|
||||
int count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user