Implemented flying for desktop, new ship bodies
This commit is contained in:
@@ -7,7 +7,7 @@ import io.anuke.mindustry.type.Mech;
|
||||
import io.anuke.mindustry.type.Upgrade;
|
||||
|
||||
public class Mechs implements ContentList {
|
||||
public static Mech alpha, delta, tau, omega, standardShip;
|
||||
public static Mech alpha, delta, tau, omega, dart, trident, javelin, halberd;
|
||||
|
||||
/**These are not new mechs, just re-assignments for convenience.*/
|
||||
public static Mech starterDesktop, starterMobile;
|
||||
@@ -39,14 +39,36 @@ public class Mechs implements ContentList {
|
||||
maxSpeed = 1.0f;
|
||||
}};
|
||||
|
||||
standardShip = new Mech("standard-ship", true){{
|
||||
dart = new Mech("dart-ship", true){{
|
||||
drillPower = -1;
|
||||
speed = 0.4f;
|
||||
maxSpeed = 3f;
|
||||
drag = 0.1f;
|
||||
}};
|
||||
|
||||
trident = new Mech("trident-ship", true){{
|
||||
drillPower = 1;
|
||||
speed = 0.4f;
|
||||
maxSpeed = 3f;
|
||||
drag = 0.1f;
|
||||
}};
|
||||
|
||||
javelin = new Mech("javelin-ship", true){{
|
||||
drillPower = -1;
|
||||
speed = 0.4f;
|
||||
maxSpeed = 3f;
|
||||
drag = 0.1f;
|
||||
}};
|
||||
|
||||
halberd = new Mech("halberd-ship", true){{
|
||||
drillPower = 2;
|
||||
speed = 0.4f;
|
||||
maxSpeed = 3f;
|
||||
drag = 0.1f;
|
||||
}};
|
||||
|
||||
starterDesktop = alpha;
|
||||
starterMobile = standardShip;
|
||||
starterMobile = dart;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -131,6 +131,10 @@ public class Recipes implements ContentList{
|
||||
new Recipe(units, UpgradeBlocks.deltaFactory, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UpgradeBlocks.tauFactory, new ItemStack(Items.iron, 1));
|
||||
|
||||
new Recipe(units, UpgradeBlocks.tridentFactory, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UpgradeBlocks.javelinFactory, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UpgradeBlocks.halberdFactory, new ItemStack(Items.iron, 1));
|
||||
|
||||
new Recipe(units, DebugBlocks.itemSource, new ItemStack(Items.steel, 10)).setDebug();
|
||||
new Recipe(units, DebugBlocks.itemVoid, new ItemStack(Items.steel, 10)).setDebug();
|
||||
new Recipe(units, DebugBlocks.liquidSource, new ItemStack(Items.steel, 10)).setDebug();
|
||||
|
||||
@@ -5,7 +5,7 @@ import io.anuke.mindustry.world.Block;
|
||||
import io.anuke.mindustry.world.blocks.production.MechFactory;
|
||||
|
||||
public class UpgradeBlocks extends BlockList {
|
||||
public static Block deltaFactory, tauFactory, omegaFactory;
|
||||
public static Block deltaFactory, tauFactory, omegaFactory, tridentFactory, javelinFactory, halberdFactory;
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
@@ -23,5 +23,20 @@ public class UpgradeBlocks extends BlockList {
|
||||
mech = Mechs.omega;
|
||||
size = 3;
|
||||
}};
|
||||
|
||||
tridentFactory = new MechFactory("trident-ship-factory"){{
|
||||
mech = Mechs.trident;
|
||||
size = 2;
|
||||
}};
|
||||
|
||||
javelinFactory = new MechFactory("javelin-ship-factory"){{
|
||||
mech = Mechs.javelin;
|
||||
size = 2;
|
||||
}};
|
||||
|
||||
halberdFactory = new MechFactory("halberd-ship-factory"){{
|
||||
mech = Mechs.halberd;
|
||||
size = 3;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user