Implemented basic mech factories
This commit is contained in:
@@ -7,22 +7,46 @@ import io.anuke.mindustry.type.Mech;
|
||||
import io.anuke.mindustry.type.Upgrade;
|
||||
|
||||
public class Mechs implements ContentList {
|
||||
public static Mech standard, standardShip;
|
||||
public static Mech alpha, delta, tau, omega, standardShip;
|
||||
|
||||
/**These are not new mechs, just re-assignments for convenience.*/
|
||||
public static Mech starterDesktop, starterMobile;
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
|
||||
standard = new Mech("standard-mech", false){{
|
||||
drillPower = 1;
|
||||
alpha = new Mech("alpha-mech", false){{
|
||||
drillPower = 2;
|
||||
speed = 1.1f;
|
||||
maxSpeed = 1.1f;
|
||||
}};
|
||||
|
||||
delta = new Mech("delta-mech", false){{
|
||||
drillPower = -1;
|
||||
speed = 1.5f;
|
||||
maxSpeed = 1.5f;
|
||||
}};
|
||||
|
||||
tau = new Mech("tau-mech", false){{
|
||||
drillPower = 2;
|
||||
speed = 1.1f;
|
||||
maxSpeed = 1.1f;
|
||||
}};
|
||||
|
||||
omega = new Mech("omega-mech", false){{
|
||||
drillPower = 1;
|
||||
speed = 1.0f;
|
||||
maxSpeed = 1.0f;
|
||||
}};
|
||||
|
||||
standardShip = new Mech("standard-ship", true){{
|
||||
drillPower = 1;
|
||||
speed = 0.4f;
|
||||
maxSpeed = 3f;
|
||||
}};
|
||||
|
||||
starterDesktop = alpha;
|
||||
starterMobile = standardShip;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.anuke.mindustry.game.Content;
|
||||
import io.anuke.mindustry.type.ContentList;
|
||||
import io.anuke.mindustry.type.ItemStack;
|
||||
import io.anuke.mindustry.type.Recipe;
|
||||
|
||||
import static io.anuke.mindustry.type.Category.*;
|
||||
|
||||
public class Recipes implements ContentList{
|
||||
@@ -126,11 +127,9 @@ public class Recipes implements ContentList{
|
||||
new Recipe(units, UnitBlocks.overdriveProjector, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UnitBlocks.shieldProjector, new ItemStack(Items.iron, 1));
|
||||
|
||||
|
||||
//new Recipe(units, UnitBlocks.vtolFactory, new ItemStack(Items.steel, 10));
|
||||
//new Recipe(units, UnitBlocks.droneFactory, new ItemStack(Items.steel, 10));
|
||||
//new Recipe(units, UnitBlocks.droneFactory, new ItemStack(Items.steel, 10));
|
||||
//new Recipe(units, UnitBlocks.walkerFactory, new ItemStack(Items.steel, 10));
|
||||
new Recipe(units, UpgradeBlocks.omegaFactory, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UpgradeBlocks.deltaFactory, new ItemStack(Items.iron, 1));
|
||||
new Recipe(units, UpgradeBlocks.tauFactory, 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();
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package io.anuke.mindustry.content.blocks;
|
||||
|
||||
import io.anuke.mindustry.content.Mechs;
|
||||
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;
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
deltaFactory = new MechFactory("delta-mech-factory"){{
|
||||
mech = Mechs.delta;
|
||||
size = 2;
|
||||
}};
|
||||
|
||||
tauFactory = new MechFactory("tau-mech-factory"){{
|
||||
mech = Mechs.tau;
|
||||
size = 2;
|
||||
}};
|
||||
|
||||
omegaFactory = new MechFactory("omega-mech-factory"){{
|
||||
mech = Mechs.omega;
|
||||
size = 3;
|
||||
}};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user