Sacrifice hivemind to convert craters to drawings

Sad, yes, but crater units would never sync well over the net in its current state, so faking them unto conveyors is the only real option.

Forgive me future ai overlord <3
This commit is contained in:
Patrick 'Quezler' Mounier
2020-01-02 21:29:19 +01:00
parent 10e4268dd5
commit 0ae6527584
14 changed files with 290 additions and 460 deletions

View File

@@ -879,25 +879,26 @@ public class Blocks implements ContentList{
//endregion
//region distribution
conveyor = new Conveyor("conveyor"){{
conveyor = new ItemConveyor("conveyor"){{
requirements(Category.distribution, ItemStack.with(Items.copper, 1), true);
health = 45;
speed = 0.03f;
}};
titaniumConveyor = new Conveyor("titanium-conveyor"){{
titaniumConveyor = new ItemConveyor("titanium-conveyor"){{
requirements(Category.distribution, ItemStack.with(Items.copper, 1, Items.lead, 1, Items.titanium, 1));
health = 65;
speed = 0.08f;
}};
plastaniumConveyor = new PlastaniumConveyor("plastanium-conveyor"){{
requirements(Category.distribution, ItemStack.with(Items.plastanium, 1, Items.surgealloy, 1, Items.phasefabric, 1));
health = 150;
plastaniumConveyor = new CraterConveyor("plastanium-conveyor"){{
requirements(Category.distribution, ItemStack.with(Items.plastanium, 1, Items.silicon, 1, Items.graphite, 1));
itemCapacity = 8;
health = 75;
speed = 0f;
}};
armoredConveyor = new ArmoredConveyor("armored-conveyor"){{
armoredConveyor = new ArmoredItemConveyor("armored-conveyor"){{
requirements(Category.distribution, ItemStack.with(Items.plastanium, 1, Items.thorium, 1, Items.metaglass, 1));
health = 180;
speed = 0.08f;

View File

@@ -11,29 +11,12 @@ import mindustry.type.*;
public class UnitTypes implements ContentList{
public static UnitType
crater, draug, spirit, phantom,
draug, spirit, phantom,
wraith, ghoul, revenant, lich, reaper,
dagger, crawler, titan, fortress, eruptor, chaosArray, eradicator;
@Override
public void load(){
crater = new UnitType("crater", CraterUnit::new){{
maxVelocity = 0.75f;
speed = 0.1f;
drag = 0.25f;
hitsize = 3.5f;
mass = 0.5f;
health = 50;
rotatespeed = 0.1f;
itemCapacity = 8;
weapon = new Weapon("hug"){{
length = 1.5f;
reload = 28f;
alternate = true;
ejectEffect = Fx.shellEjectSmall;
bullet = Bullets.standardCopper;
}};
}};
draug = new UnitType("draug", MinerDrone::new){{
flying = true;