Removed autogenerated liquid sprites
BIN
core/assets-raw/sprites/items/liquid-cryofluid.png
Normal file
|
After Width: | Height: | Size: 260 B |
|
Before Width: | Height: | Size: 133 B |
BIN
core/assets-raw/sprites/items/liquid-oil.png
Normal file
|
After Width: | Height: | Size: 255 B |
BIN
core/assets-raw/sprites/items/liquid-slag.png
Normal file
|
After Width: | Height: | Size: 259 B |
BIN
core/assets-raw/sprites/items/liquid-water.png
Normal file
|
After Width: | Height: | Size: 263 B |
|
Before Width: | Height: | Size: 337 KiB After Width: | Height: | Size: 193 KiB |
@@ -33,7 +33,7 @@ public class Blocks implements ContentList{
|
|||||||
grass, shrub, rock, icerock, blackrock,
|
grass, shrub, rock, icerock, blackrock,
|
||||||
|
|
||||||
//crafting
|
//crafting
|
||||||
smelter, siliconSmelter, plastaniumCompressor, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidmixer,
|
siliconSmelter, plastaniumCompressor, phaseWeaver, surgeSmelter, pyratiteMixer, blastMixer, cryofluidMixer,
|
||||||
melter, separator, centrifuge, biomatterCompressor, pulverizer, incinerator,
|
melter, separator, centrifuge, biomatterCompressor, pulverizer, incinerator,
|
||||||
|
|
||||||
//sandbox
|
//sandbox
|
||||||
@@ -44,10 +44,10 @@ public class Blocks implements ContentList{
|
|||||||
phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mendProjector, overdriveProjector, forceProjector, shockMine,
|
phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mendProjector, overdriveProjector, forceProjector, shockMine,
|
||||||
|
|
||||||
//transport
|
//transport
|
||||||
conveyor, titaniumconveyor, distributor, junction, itemBridge, phaseConveyor, sorter, router, overflowGate, massDriver,
|
conveyor, titaniumConveyor, distributor, junction, itemBridge, phaseConveyor, sorter, router, overflowGate, massDriver,
|
||||||
|
|
||||||
//liquids
|
//liquids
|
||||||
mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, liquidRouter, liquidtank, liquidJunction, bridgeConduit, phaseConduit,
|
mechanicalPump, rotaryPump, thermalPump, conduit, pulseConduit, liquidRouter, liquidTank, liquidJunction, bridgeConduit, phaseConduit,
|
||||||
|
|
||||||
//power
|
//power
|
||||||
combustionGenerator, thermalGenerator, turbineGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor,
|
combustionGenerator, thermalGenerator, turbineGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor,
|
||||||
@@ -264,7 +264,7 @@ public class Blocks implements ContentList{
|
|||||||
consumes.items(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"){{
|
||||||
outputLiquid = Liquids.cryofluid;
|
outputLiquid = Liquids.cryofluid;
|
||||||
liquidPerItem = 50f;
|
liquidPerItem = 50f;
|
||||||
size = 2;
|
size = 2;
|
||||||
@@ -460,7 +460,7 @@ public class Blocks implements ContentList{
|
|||||||
speed = 0.03f;
|
speed = 0.03f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
titaniumconveyor = new Conveyor("titanium-conveyor"){{
|
titaniumConveyor = new Conveyor("titanium-conveyor"){{
|
||||||
health = 65;
|
health = 65;
|
||||||
speed = 0.07f;
|
speed = 0.07f;
|
||||||
}};
|
}};
|
||||||
@@ -538,7 +538,7 @@ public class Blocks implements ContentList{
|
|||||||
liquidCapacity = 20f;
|
liquidCapacity = 20f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
liquidtank = new LiquidTank("liquid-tank"){{
|
liquidTank = new LiquidTank("liquid-tank"){{
|
||||||
size = 3;
|
size = 3;
|
||||||
liquidCapacity = 1500f;
|
liquidCapacity = 1500f;
|
||||||
health = 500;
|
health = 500;
|
||||||
@@ -1113,7 +1113,6 @@ public class Blocks implements ContentList{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
//endregion
|
//endregion
|
||||||
|
|
||||||
//region ores
|
//region ores
|
||||||
|
|
||||||
//create ores for every floor and item combination necessary
|
//create ores for every floor and item combination necessary
|
||||||
|
|||||||
@@ -513,7 +513,6 @@ public class Bullets implements ContentList{
|
|||||||
|
|
||||||
fuseShot = new BulletType(0.01f, 70){
|
fuseShot = new BulletType(0.01f, 70){
|
||||||
int rays = 3;
|
int rays = 3;
|
||||||
float raySpace = 2f;
|
|
||||||
float rayLength = 80f;
|
float rayLength = 80f;
|
||||||
{
|
{
|
||||||
hitEffect = Fx.hitFuse;
|
hitEffect = Fx.hitFuse;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import io.anuke.mindustry.type.ItemType;
|
|||||||
|
|
||||||
public class Items implements ContentList{
|
public class Items implements ContentList{
|
||||||
public static Item scrap, copper, lead, graphite, coal, titanium, thorium, silicon, plastanium, phasefabric, surgealloy,
|
public static Item scrap, copper, lead, graphite, coal, titanium, thorium, silicon, plastanium, phasefabric, surgealloy,
|
||||||
biomatter, sand, blastCompound, pyratite;
|
biomatter, sand, blastCompound, pyratite, bioglass;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
@@ -99,5 +99,10 @@ public class Items implements ContentList{
|
|||||||
flammability = 0.7f;
|
flammability = 0.7f;
|
||||||
explosiveness = 0.2f;
|
explosiveness = 0.2f;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
bioglass = new Item("bioglass", Color.valueOf("648b55")){{
|
||||||
|
type = ItemType.material;
|
||||||
|
cost = 2f;
|
||||||
|
}};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,18 +10,11 @@ public class Liquids implements ContentList{
|
|||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
|
|
||||||
water = new Liquid("water", Color.valueOf("486acd")){
|
water = new Liquid("water", Color.valueOf("486acd")){{
|
||||||
{
|
heatCapacity = 0.4f;
|
||||||
heatCapacity = 0.4f;
|
tier = 0;
|
||||||
tier = 0;
|
effect = StatusEffects.wet;
|
||||||
effect = StatusEffects.wet;
|
}};
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean alwaysUnlocked() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
slag = new Liquid("slag", Color.valueOf("e37341")){{
|
slag = new Liquid("slag", Color.valueOf("e37341")){{
|
||||||
temperature = 1f;
|
temperature = 1f;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ public class Recipes implements ContentList{
|
|||||||
|
|
||||||
//DISTRIBUTION
|
//DISTRIBUTION
|
||||||
new Recipe(distribution, Blocks.conveyor, new ItemStack(Items.copper, 1)).setAlwaysUnlocked(true);
|
new Recipe(distribution, Blocks.conveyor, new ItemStack(Items.copper, 1)).setAlwaysUnlocked(true);
|
||||||
new Recipe(distribution, Blocks.titaniumconveyor, new ItemStack(Items.copper, 2), new ItemStack(Items.titanium, 1));
|
new Recipe(distribution, Blocks.titaniumConveyor, new ItemStack(Items.copper, 2), new ItemStack(Items.titanium, 1));
|
||||||
new Recipe(distribution, Blocks.phaseConveyor, new ItemStack(Items.phasefabric, 10), new ItemStack(Items.silicon, 15), new ItemStack(Items.lead, 20), new ItemStack(Items.graphite, 20));
|
new Recipe(distribution, Blocks.phaseConveyor, new ItemStack(Items.phasefabric, 10), new ItemStack(Items.silicon, 15), new ItemStack(Items.lead, 20), new ItemStack(Items.graphite, 20));
|
||||||
|
|
||||||
//starter transport
|
//starter transport
|
||||||
@@ -101,7 +101,7 @@ public class Recipes implements ContentList{
|
|||||||
new Recipe(crafting, Blocks.pulverizer, new ItemStack(Items.copper, 60), new ItemStack(Items.lead, 50));
|
new Recipe(crafting, Blocks.pulverizer, new ItemStack(Items.copper, 60), new ItemStack(Items.lead, 50));
|
||||||
new Recipe(crafting, Blocks.pyratiteMixer, new ItemStack(Items.copper, 100), new ItemStack(Items.lead, 50));
|
new Recipe(crafting, Blocks.pyratiteMixer, new ItemStack(Items.copper, 100), new ItemStack(Items.lead, 50));
|
||||||
new Recipe(crafting, Blocks.blastMixer, new ItemStack(Items.lead, 60), new ItemStack(Items.titanium, 40));
|
new Recipe(crafting, Blocks.blastMixer, new ItemStack(Items.lead, 60), new ItemStack(Items.titanium, 40));
|
||||||
new Recipe(crafting, Blocks.cryofluidmixer, new ItemStack(Items.lead, 130), new ItemStack(Items.silicon, 80), new ItemStack(Items.thorium, 90));
|
new Recipe(crafting, Blocks.cryofluidMixer, new ItemStack(Items.lead, 130), new ItemStack(Items.silicon, 80), new ItemStack(Items.thorium, 90));
|
||||||
|
|
||||||
new Recipe(crafting, Blocks.melter, new ItemStack(Items.copper, 60), new ItemStack(Items.lead, 70), new ItemStack(Items.graphite, 90));
|
new Recipe(crafting, Blocks.melter, new ItemStack(Items.copper, 60), new ItemStack(Items.lead, 70), new ItemStack(Items.graphite, 90));
|
||||||
new Recipe(crafting, Blocks.incinerator, new ItemStack(Items.graphite, 10), new ItemStack(Items.lead, 30));
|
new Recipe(crafting, Blocks.incinerator, new ItemStack(Items.graphite, 10), new ItemStack(Items.lead, 30));
|
||||||
@@ -175,7 +175,7 @@ public class Recipes implements ContentList{
|
|||||||
new Recipe(liquid, Blocks.phaseConduit, new ItemStack(Items.phasefabric, 10), new ItemStack(Items.silicon, 15), new ItemStack(Items.lead, 20), new ItemStack(Items.titanium, 20));
|
new Recipe(liquid, Blocks.phaseConduit, new ItemStack(Items.phasefabric, 10), new ItemStack(Items.silicon, 15), new ItemStack(Items.lead, 20), new ItemStack(Items.titanium, 20));
|
||||||
|
|
||||||
new Recipe(liquid, Blocks.liquidRouter, new ItemStack(Items.titanium, 4), new ItemStack(Items.lead, 4));
|
new Recipe(liquid, Blocks.liquidRouter, new ItemStack(Items.titanium, 4), new ItemStack(Items.lead, 4));
|
||||||
new Recipe(liquid, Blocks.liquidtank, new ItemStack(Items.titanium, 50), new ItemStack(Items.lead, 50));
|
new Recipe(liquid, Blocks.liquidTank, new ItemStack(Items.titanium, 50), new ItemStack(Items.lead, 50));
|
||||||
new Recipe(liquid, Blocks.liquidJunction, new ItemStack(Items.titanium, 4), new ItemStack(Items.lead, 4));
|
new Recipe(liquid, Blocks.liquidJunction, new ItemStack(Items.titanium, 4), new ItemStack(Items.lead, 4));
|
||||||
new Recipe(liquid, Blocks.bridgeConduit, new ItemStack(Items.titanium, 8), new ItemStack(Items.lead, 8));
|
new Recipe(liquid, Blocks.bridgeConduit, new ItemStack(Items.titanium, 8), new ItemStack(Items.lead, 8));
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class SectorPresets{
|
|||||||
Array.ofRecursive(
|
Array.ofRecursive(
|
||||||
Missions.blockRecipe(Blocks.daggerFactory),
|
Missions.blockRecipe(Blocks.daggerFactory),
|
||||||
new UnitMission(UnitTypes.dagger),
|
new UnitMission(UnitTypes.dagger),
|
||||||
Missions.blockRecipe(Blocks.commandCenter),
|
//Missions.blockRecipe(Blocks.commandCenter),
|
||||||
new CommandMission(UnitCommand.retreat),
|
new CommandMission(UnitCommand.retreat),
|
||||||
new CommandMission(UnitCommand.attack),
|
new CommandMission(UnitCommand.attack),
|
||||||
new BattleMission()
|
new BattleMission()
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class TutorialSector{
|
|||||||
new ItemMission(Items.lead, 50),
|
new ItemMission(Items.lead, 50),
|
||||||
|
|
||||||
// new BlockMission(CraftingBlocks.smelter),
|
// new BlockMission(CraftingBlocks.smelter),
|
||||||
new BlockMission(Blocks.smelter),
|
//new BlockMission(Blocks.smelter),
|
||||||
new WaveMission(5)
|
new WaveMission(5)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,8 @@
|
|||||||
package io.anuke.mindustry.type;
|
package io.anuke.mindustry.type;
|
||||||
|
|
||||||
public enum ItemType{
|
public enum ItemType{
|
||||||
/**
|
/**Not used for anything besides crafting inside blocks.*/
|
||||||
* Not used for anything besides crafting inside blocks.
|
|
||||||
*/
|
|
||||||
resource,
|
resource,
|
||||||
/**
|
/**Can be used for constructing blocks. Only materials are accepted into the core.*/
|
||||||
* Can be used for constructing blocks. Only materials are accepted into the core.
|
material
|
||||||
*/
|
|
||||||
material,
|
|
||||||
/**
|
|
||||||
* Only used as ammo for turrets.
|
|
||||||
*/
|
|
||||||
ammo
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class Liquid extends UnlockableContent{
|
|||||||
public StatusEffect effect = StatusEffects.none;
|
public StatusEffect effect = StatusEffects.none;
|
||||||
/**Pump tier. Controls which pumps can use this liquid.*/
|
/**Pump tier. Controls which pumps can use this liquid.*/
|
||||||
public int tier;
|
public int tier;
|
||||||
/**Displayed icon.*/
|
/**Displayed icon. TODO fix it by removing autogen, draw icons manually*/
|
||||||
public TextureRegion iconRegion;
|
public TextureRegion iconRegion;
|
||||||
|
|
||||||
public Liquid(String name, Color color){
|
public Liquid(String name, Color color){
|
||||||
@@ -44,7 +44,7 @@ public class Liquid extends UnlockableContent{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
iconRegion = Core.atlas.find("liquid-icon-" + name);
|
iconRegion = Core.atlas.find("liquid-" + name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ package io.anuke.mindustry;
|
|||||||
|
|
||||||
import io.anuke.arc.Core;
|
import io.anuke.arc.Core;
|
||||||
import io.anuke.arc.graphics.Color;
|
import io.anuke.arc.graphics.Color;
|
||||||
import io.anuke.arc.graphics.g2d.Draw;
|
|
||||||
import io.anuke.arc.graphics.g2d.TextureRegion;
|
import io.anuke.arc.graphics.g2d.TextureRegion;
|
||||||
import io.anuke.mindustry.entities.units.UnitType;
|
import io.anuke.mindustry.entities.units.UnitType;
|
||||||
import io.anuke.mindustry.type.ContentType;
|
import io.anuke.mindustry.type.ContentType;
|
||||||
import io.anuke.mindustry.type.Item;
|
import io.anuke.mindustry.type.Item;
|
||||||
import io.anuke.mindustry.type.Liquid;
|
|
||||||
import io.anuke.mindustry.type.Mech;
|
import io.anuke.mindustry.type.Mech;
|
||||||
import io.anuke.mindustry.world.Block;
|
import io.anuke.mindustry.world.Block;
|
||||||
import io.anuke.mindustry.world.blocks.Floor;
|
import io.anuke.mindustry.world.blocks.Floor;
|
||||||
@@ -105,21 +103,6 @@ public class Generators {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ImageContext.generate("liquid-icons", () -> {
|
|
||||||
for(Liquid liquid : content.liquids()){
|
|
||||||
Image image = ImageContext.get("liquid-icon");
|
|
||||||
for (int x = 0; x < image.width(); x++) {
|
|
||||||
for (int y = 0; y < image.height(); y++) {
|
|
||||||
Color color = image.getColor(x, y);
|
|
||||||
color.mul(liquid.color);
|
|
||||||
image.draw(x, y, color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
image.save("liquid-icon-" + liquid.name);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
ImageContext.generate("block-edges", () -> {
|
ImageContext.generate("block-edges", () -> {
|
||||||
for(Block block : content.blocks()){
|
for(Block block : content.blocks()){
|
||||||
if(!(block instanceof Floor)) continue;
|
if(!(block instanceof Floor)) continue;
|
||||||
|
|||||||