Initial crafting rework changes
This commit is contained in:
@@ -10,23 +10,12 @@ import io.anuke.mindustry.world.Block;
|
|||||||
import io.anuke.mindustry.world.blocks.production.*;
|
import io.anuke.mindustry.world.blocks.production.*;
|
||||||
|
|
||||||
public class CraftingBlocks extends BlockList implements ContentList{
|
public class CraftingBlocks extends BlockList implements ContentList{
|
||||||
public static Block smelter, arcsmelter, siliconsmelter, plastaniumCompressor, phaseWeaver, alloySmelter,
|
public static Block arcsmelter, siliconsmelter, plastaniumCompressor, phaseWeaver, alloySmelter,
|
||||||
pyratiteMixer, blastMixer,
|
pyratiteMixer, blastMixer,
|
||||||
cryofluidmixer, melter, separator, centrifuge, biomatterCompressor, pulverizer, solidifier, incinerator;
|
cryofluidmixer, melter, separator, centrifuge, biomatterCompressor, pulverizer, solidifier, incinerator;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
smelter = new Smelter("smelter"){{
|
|
||||||
health = 70;
|
|
||||||
result = Items.densealloy;
|
|
||||||
craftTime = 45f;
|
|
||||||
burnDuration = 46f;
|
|
||||||
useFlux = true;
|
|
||||||
|
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.copper, 1), new ItemStack(Items.lead, 2)});
|
|
||||||
consumes.item(Items.coal).optional(true);
|
|
||||||
}};
|
|
||||||
|
|
||||||
arcsmelter = new PowerSmelter("arc-smelter"){{
|
arcsmelter = new PowerSmelter("arc-smelter"){{
|
||||||
health = 90;
|
health = 90;
|
||||||
craftEffect = BlockFx.smeltsmoke;
|
craftEffect = BlockFx.smeltsmoke;
|
||||||
@@ -37,7 +26,7 @@ public class CraftingBlocks extends BlockList implements ContentList{
|
|||||||
useFlux = true;
|
useFlux = true;
|
||||||
fluxNeeded = 2;
|
fluxNeeded = 2;
|
||||||
|
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.copper, 1), new ItemStack(Items.lead, 2)});
|
consumes.items(new ItemStack(Items.copper, 1), new ItemStack(Items.lead, 2));
|
||||||
consumes.power(0.1f);
|
consumes.power(0.1f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -51,7 +40,7 @@ public class CraftingBlocks extends BlockList implements ContentList{
|
|||||||
hasLiquids = false;
|
hasLiquids = false;
|
||||||
flameColor = Color.valueOf("ffef99");
|
flameColor = Color.valueOf("ffef99");
|
||||||
|
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.coal, 1), new ItemStack(Items.sand, 2)});
|
consumes.items(new ItemStack(Items.coal, 1), new ItemStack(Items.sand, 2));
|
||||||
consumes.power(0.05f);
|
consumes.power(0.05f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -80,7 +69,7 @@ public class CraftingBlocks extends BlockList implements ContentList{
|
|||||||
powerCapacity = 50f;
|
powerCapacity = 50f;
|
||||||
size = 2;
|
size = 2;
|
||||||
|
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.thorium, 4), new ItemStack(Items.sand, 10)});
|
consumes.items(new ItemStack(Items.thorium, 4), new ItemStack(Items.sand, 10));
|
||||||
consumes.power(0.5f);
|
consumes.power(0.5f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -95,7 +84,7 @@ public class CraftingBlocks extends BlockList implements ContentList{
|
|||||||
fluxNeeded = 3;
|
fluxNeeded = 3;
|
||||||
|
|
||||||
consumes.power(0.4f);
|
consumes.power(0.4f);
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.titanium, 2), new ItemStack(Items.lead, 4), new ItemStack(Items.silicon, 3), new ItemStack(Items.copper, 3)});
|
consumes.items(new ItemStack(Items.titanium, 2), new ItemStack(Items.lead, 4), new ItemStack(Items.silicon, 3), new ItemStack(Items.copper, 3));
|
||||||
}};
|
}};
|
||||||
|
|
||||||
cryofluidmixer = new LiquidMixer("cryofluidmixer"){{
|
cryofluidmixer = new LiquidMixer("cryofluidmixer"){{
|
||||||
@@ -133,7 +122,7 @@ public class CraftingBlocks extends BlockList implements ContentList{
|
|||||||
size = 2;
|
size = 2;
|
||||||
|
|
||||||
consumes.power(0.02f);
|
consumes.power(0.02f);
|
||||||
consumes.items(new ItemStack[]{new ItemStack(Items.coal, 1), new ItemStack(Items.lead, 2), new ItemStack(Items.sand, 2)});
|
consumes.items(new ItemStack(Items.coal, 1), new ItemStack(Items.lead, 2), new ItemStack(Items.sand, 2));
|
||||||
}};
|
}};
|
||||||
|
|
||||||
melter = new PowerCrafter("melter"){{
|
melter = new PowerCrafter("melter"){{
|
||||||
|
|||||||
Reference in New Issue
Block a user