Further targeting improvements for AI

This commit is contained in:
Anuken
2018-06-03 20:03:53 -04:00
parent 270dc351a1
commit 3202d62a92
26 changed files with 420 additions and 242 deletions

View File

@@ -110,9 +110,12 @@ public class Recipes implements ContentList{
new Recipe(liquid, LiquidBlocks.fluxpump, new ItemStack(Items.steel, 10), new ItemStack(Items.surgealloy, 5));
new Recipe(units, UnitBlocks.repairPoint, new ItemStack(Items.steel, 10));
new Recipe(units, UnitBlocks.dropPoint, new ItemStack(Items.steel, 10));
new Recipe(units, UnitBlocks.resupplyPoint, new ItemStack(Items.steel, 10));
//new Recipe(units, UnitBlocks.droneFactory, new ItemStack(Items.steel, 10));
new Recipe(units, UnitBlocks.droneFactory, new ItemStack(Items.iron, 50));
//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));

View File

@@ -1,30 +1,39 @@
package io.anuke.mindustry.content.blocks;
import io.anuke.mindustry.content.Items;
import io.anuke.mindustry.content.UnitTypes;
import io.anuke.mindustry.type.ContentList;
import io.anuke.mindustry.type.ItemStack;
import io.anuke.mindustry.world.Block;
import io.anuke.mindustry.world.blocks.types.units.DropPoint;
import io.anuke.mindustry.world.blocks.types.units.RepairPoint;
import io.anuke.mindustry.world.blocks.types.units.ResupplyPoint;
import io.anuke.mindustry.world.blocks.types.units.UnitFactory;
public class UnitBlocks implements ContentList {
public static Block resupplyPoint, repairPoint, droneFactory;
public static Block resupplyPoint, repairPoint, droneFactory, dropPoint;
@Override
public void load() {
/*
droneFactory = new UnitFactory("dronefactory") {{
type = UnitTypes.drone;
produceTime = 200;
produceTime = 300;
size = 2;
requirements = new ItemStack[]{
new ItemStack(Items.stone, 5)
new ItemStack(Items.iron, 20)
};
}};*/
}};
resupplyPoint = new ResupplyPoint("resupplypoint") {{
shadow = "shadow-round-1";
itemCapacity = 30;
}};
dropPoint = new DropPoint("droppoint") {{
shadow = "shadow-round-1";
itemCapacity = 40;
}};
repairPoint = new RepairPoint("repairpoint") {{
shadow = "shadow-round-1";
repairSpeed = 0.1f;