Slag heater block
BIN
core/assets-raw/sprites/blocks/production/slag-heater-bottom.png
Normal file
|
After Width: | Height: | Size: 223 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-heat.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-liquid.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top.png
Normal file
|
After Width: | Height: | Size: 159 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top1.png
Normal file
|
After Width: | Height: | Size: 459 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater-top2.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
core/assets-raw/sprites/blocks/production/slag-heater.png
Normal file
|
After Width: | Height: | Size: 756 B |
@@ -454,3 +454,4 @@
|
|||||||
63252=cyanogen|liquid-cyanogen-ui
|
63252=cyanogen|liquid-cyanogen-ui
|
||||||
63251=gallium|liquid-gallium-ui
|
63251=gallium|liquid-gallium-ui
|
||||||
63250=slag-centrifuge|block-slag-centrifuge-ui
|
63250=slag-centrifuge|block-slag-centrifuge-ui
|
||||||
|
63249=slag-heater|block-slag-heater-ui
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class Blocks implements ContentList{
|
|||||||
//crafting
|
//crafting
|
||||||
siliconSmelter, siliconCrucible, siliconArcFurnace, kiln, graphitePress, plastaniumCompressor, multiPress, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer,
|
siliconSmelter, siliconCrucible, siliconArcFurnace, kiln, graphitePress, plastaniumCompressor, multiPress, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer,
|
||||||
melter, separator, disassembler, sporePress, pulverizer, incinerator, coalCentrifuge,
|
melter, separator, disassembler, sporePress, pulverizer, incinerator, coalCentrifuge,
|
||||||
electrolyzer, oxidationChamber, heatReactor, carbideCrucible, slagCentrifuge, surgeCrucible, cyanogenSynthesizer,
|
electrolyzer, oxidationChamber, slagHeater, heatReactor, carbideCrucible, slagCentrifuge, surgeCrucible, cyanogenSynthesizer,
|
||||||
cellSynthesisChamber,
|
cellSynthesisChamber,
|
||||||
|
|
||||||
//sandbox
|
//sandbox
|
||||||
@@ -1010,6 +1010,17 @@ public class Blocks implements ContentList{
|
|||||||
heatOutput = 5f;
|
heatOutput = 5f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
slagHeater = new HeatProducer("slag-heater"){{
|
||||||
|
requirements(Category.crafting, with(Items.tungsten, 30, Items.graphite, 30));
|
||||||
|
|
||||||
|
drawer = new DrawMulti(new DrawRegion("-bottom"), new DrawLiquidRegion(Liquids.slag), new DrawRegion("-top"), new DrawHeatOutput(true));
|
||||||
|
iconOverride = new String[]{"-bottom", "", "-top"};
|
||||||
|
size = 2;
|
||||||
|
craftTime = 60f * 1f;
|
||||||
|
heatOutput = 2f;
|
||||||
|
consumes.liquid(Liquids.slag, 20f / 60f);
|
||||||
|
}};
|
||||||
|
|
||||||
heatReactor = new HeatProducer("heat-reactor"){{
|
heatReactor = new HeatProducer("heat-reactor"){{
|
||||||
//TODO quadvent?
|
//TODO quadvent?
|
||||||
//TODO coolant?
|
//TODO coolant?
|
||||||
@@ -1038,7 +1049,6 @@ public class Blocks implements ContentList{
|
|||||||
consumes.power(2f);
|
consumes.power(2f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO implement - is this even necessary?
|
|
||||||
slagCentrifuge = new GenericCrafter("slag-centrifuge"){{
|
slagCentrifuge = new GenericCrafter("slag-centrifuge"){{
|
||||||
requirements(Category.crafting, with(Items.tungsten, 60, Items.graphite, 60, Items.oxide, 40));
|
requirements(Category.crafting, with(Items.tungsten, 60, Items.graphite, 60, Items.oxide, 40));
|
||||||
|
|
||||||
@@ -1070,7 +1080,7 @@ public class Blocks implements ContentList{
|
|||||||
outputItem = new ItemStack(Items.scrap, 1);
|
outputItem = new ItemStack(Items.scrap, 1);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO should have a useful turret ammo byproduct?
|
//TODO should have a useful turret ammo byproduct? scrap?
|
||||||
//original: consumes.items(with(Items.copper, 3, Items.lead, 4, Items.titanium, 2, Items.silicon, 3));
|
//original: consumes.items(with(Items.copper, 3, Items.lead, 4, Items.titanium, 2, Items.silicon, 3));
|
||||||
surgeCrucible = new HeatCrafter("surge-crucible"){{
|
surgeCrucible = new HeatCrafter("surge-crucible"){{
|
||||||
requirements(Category.crafting, with(Items.tungsten, 60, Items.graphite, 60, Items.carbide, 30));
|
requirements(Category.crafting, with(Items.tungsten, 60, Items.graphite, 60, Items.carbide, 30));
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ public class HeatProducer extends GenericCrafter{
|
|||||||
public HeatProducer(String name){
|
public HeatProducer(String name){
|
||||||
super(name);
|
super(name);
|
||||||
|
|
||||||
drawer = new DrawMulti(new DrawHeatOutput(){{
|
drawer = new DrawHeatOutput(true);
|
||||||
drawRegion = true;
|
|
||||||
}});
|
|
||||||
rotateDraw = false;
|
rotateDraw = false;
|
||||||
rotate = true;
|
rotate = true;
|
||||||
canOverdrive = false;
|
canOverdrive = false;
|
||||||
@@ -35,7 +33,7 @@ public class HeatProducer extends GenericCrafter{
|
|||||||
public void setBars(){
|
public void setBars(){
|
||||||
super.setBars();
|
super.setBars();
|
||||||
|
|
||||||
bars.add("heat", (HeatProducerBuild entity) -> new Bar("bar.heat", Pal.lightOrange, () -> entity.heat));
|
bars.add("heat", (HeatProducerBuild entity) -> new Bar("bar.heat", Pal.lightOrange, () -> entity.heat / heatOutput));
|
||||||
}
|
}
|
||||||
|
|
||||||
public class HeatProducerBuild extends GenericCrafterBuild implements HeatBlock{
|
public class HeatProducerBuild extends GenericCrafterBuild implements HeatBlock{
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ public class DrawHeatOutput extends DrawBlock{
|
|||||||
public float heatPulse = 0.3f, heatPulseScl = 10f, glowMult = 1.2f;
|
public float heatPulse = 0.3f, heatPulseScl = 10f, glowMult = 1.2f;
|
||||||
public boolean drawRegion = false;
|
public boolean drawRegion = false;
|
||||||
|
|
||||||
|
public DrawHeatOutput(){
|
||||||
|
}
|
||||||
|
|
||||||
|
public DrawHeatOutput(boolean drawRegion){
|
||||||
|
this.drawRegion = drawRegion;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawBase(Building build){
|
public void drawBase(Building build){
|
||||||
if(drawRegion) Draw.rect(build.block.region, build.x, build.y);
|
if(drawRegion) Draw.rect(build.block.region, build.x, build.y);
|
||||||
|
|||||||