diff --git a/core/assets-raw/sprites/blocks/drill.png b/core/assets-raw/sprites/blocks/drill.png deleted file mode 100644 index 1f855be7a0..0000000000 Binary files a/core/assets-raw/sprites/blocks/drill.png and /dev/null differ diff --git a/core/assets-raw/sprites/blocks/lavasmelter.png b/core/assets-raw/sprites/blocks/lavasmelter.png new file mode 100644 index 0000000000..df2b3b1f9e Binary files /dev/null and b/core/assets-raw/sprites/blocks/lavasmelter.png differ diff --git a/core/assets-raw/sprites/blocks/stoneformer.png b/core/assets-raw/sprites/blocks/stoneformer.png new file mode 100644 index 0000000000..baeedc7505 Binary files /dev/null and b/core/assets-raw/sprites/blocks/stoneformer.png differ diff --git a/core/assets/sprites/sprites.atlas b/core/assets/sprites/sprites.atlas index 82f97ada09..4f7cbdb16d 100644 --- a/core/assets/sprites/sprites.atlas +++ b/core/assets/sprites/sprites.atlas @@ -221,16 +221,9 @@ blocks/doubleturret orig: 10, 10 offset: 0, 0 index: -1 -blocks/drill - rotate: false - xy: 449, 263 - size: 8, 8 - orig: 8, 8 - offset: 0, 0 - index: -1 blocks/duriumwall rotate: false - xy: 449, 253 + xy: 449, 263 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -244,7 +237,7 @@ blocks/duriumwall-large index: -1 blocks/duriumwall-large-icon rotate: false - xy: 476, 421 + xy: 449, 253 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -258,42 +251,42 @@ blocks/flameturret index: -1 blocks/fluxpump rotate: false - xy: 476, 401 + xy: 476, 411 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/grass1 rotate: false - xy: 476, 391 + xy: 476, 401 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/grass2 rotate: false - xy: 490, 431 + xy: 476, 391 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/grass3 rotate: false - xy: 486, 421 + xy: 490, 431 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/grassblock rotate: false - xy: 486, 411 + xy: 486, 421 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/grassblock2 rotate: false - xy: 486, 401 + xy: 486, 411 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -307,42 +300,42 @@ blocks/grassedge index: -1 blocks/iron1 rotate: false - xy: 483, 381 + xy: 473, 369 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/iron2 rotate: false - xy: 483, 371 + xy: 483, 381 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/iron3 rotate: false - xy: 493, 381 + xy: 483, 371 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/irondrill rotate: false - xy: 503, 381 + xy: 493, 381 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/ironwall rotate: false - xy: 493, 371 + xy: 503, 381 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/junction rotate: false - xy: 503, 371 + xy: 493, 371 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -356,7 +349,7 @@ blocks/laserturret index: -1 blocks/lava rotate: false - xy: 415, 215 + xy: 503, 371 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -368,6 +361,13 @@ blocks/lavaedge orig: 12, 12 offset: 0, 0 index: -1 +blocks/lavasmelter + rotate: false + xy: 415, 215 + size: 8, 8 + orig: 8, 8 + offset: 0, 0 + index: -1 blocks/liquiditemjunction rotate: false xy: 415, 205 @@ -746,34 +746,41 @@ blocks/stoneedge orig: 12, 12 offset: 0, 0 index: -1 -blocks/stonewall +blocks/stoneformer rotate: false xy: 497, 351 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 -blocks/teleporter +blocks/stonewall rotate: false xy: 477, 339 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 -blocks/teleporter-top +blocks/teleporter rotate: false xy: 487, 341 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 -blocks/thermalgenerator +blocks/teleporter-top rotate: false xy: 497, 341 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 +blocks/thermalgenerator + rotate: false + xy: 419, 167 + size: 8, 8 + orig: 8, 8 + offset: 0, 0 + index: -1 blocks/titancannon rotate: false xy: 285, 150 @@ -790,49 +797,49 @@ blocks/titancannon-icon index: -1 blocks/titanium1 rotate: false - xy: 419, 167 + xy: 487, 331 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titanium2 rotate: false - xy: 487, 331 + xy: 497, 331 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titanium3 rotate: false - xy: 497, 331 + xy: 246, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titaniumdrill rotate: false - xy: 246, 121 + xy: 256, 122 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titaniumpurifier rotate: false - xy: 256, 122 + xy: 266, 122 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titaniumshieldwall rotate: false - xy: 266, 122 + xy: 276, 122 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/titaniumwall rotate: false - xy: 276, 122 + xy: 286, 122 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -846,7 +853,7 @@ blocks/titaniumwall-large index: -1 blocks/titaniumwall-large-icon rotate: false - xy: 286, 122 + xy: 311, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -860,35 +867,35 @@ blocks/turret index: -1 blocks/uranium1 rotate: false - xy: 331, 121 + xy: 341, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/uranium2 rotate: false - xy: 341, 121 + xy: 351, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/uranium3 rotate: false - xy: 351, 121 + xy: 256, 112 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/uraniumdrill rotate: false - xy: 256, 112 + xy: 266, 112 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 blocks/water rotate: false - xy: 266, 112 + xy: 276, 112 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -1161,49 +1168,49 @@ enemyarrow index: -1 icon-coal rotate: false - xy: 486, 391 + xy: 486, 401 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-dirium rotate: false - xy: 496, 421 + xy: 486, 391 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-iron rotate: false - xy: 496, 411 + xy: 496, 421 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-steel rotate: false - xy: 496, 401 + xy: 496, 411 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-stone rotate: false - xy: 496, 391 + xy: 496, 401 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-titanium rotate: false - xy: 473, 379 + xy: 496, 391 size: 8, 8 orig: 8, 8 offset: 0, 0 index: -1 icon-uranium rotate: false - xy: 473, 369 + xy: 473, 379 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -1252,7 +1259,7 @@ shot-long index: -1 titanshell rotate: false - xy: 311, 121 + xy: 321, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -1755,7 +1762,7 @@ weapons/blaster index: -1 weapons/flamer rotate: false - xy: 476, 411 + xy: 476, 421 size: 8, 8 orig: 8, 8 offset: 0, 0 @@ -1783,7 +1790,7 @@ weapons/railgun index: -1 weapons/triblaster rotate: false - xy: 321, 121 + xy: 331, 121 size: 8, 8 orig: 8, 8 offset: 0, 0 diff --git a/core/assets/sprites/sprites.png b/core/assets/sprites/sprites.png index 7b3e02fb24..067e9768f4 100644 Binary files a/core/assets/sprites/sprites.png and b/core/assets/sprites/sprites.png differ diff --git a/core/src/io/anuke/mindustry/resource/Recipe.java b/core/src/io/anuke/mindustry/resource/Recipe.java index f34109aa42..3d0abead08 100644 --- a/core/src/io/anuke/mindustry/resource/Recipe.java +++ b/core/src/io/anuke/mindustry/resource/Recipe.java @@ -49,6 +49,8 @@ public enum Recipe{ coalpurifier(crafting, ProductionBlocks.coalpurifier, stack(Item.steel, 10), stack(Item.iron, 10)), titaniumpurifier(crafting, ProductionBlocks.titaniumpurifier, stack(Item.steel, 30), stack(Item.iron, 30)), oilrefinery(crafting, ProductionBlocks.oilrefinery, stack(Item.steel, 30), stack(Item.iron, 30)), + stoneformer(crafting, ProductionBlocks.stoneformer, stack(Item.steel, 30), stack(Item.iron, 30)), + lavasmelter(crafting, ProductionBlocks.lavasmelter, stack(Item.steel, 30), stack(Item.iron, 30)), stonedrill(production, ProductionBlocks.stonedrill, stack(Item.stone, 12)), irondrill(production, ProductionBlocks.irondrill, stack(Item.stone, 25)), diff --git a/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java b/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java index 0104cc81fc..43e521c51d 100644 --- a/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java +++ b/core/src/io/anuke/mindustry/world/blocks/ProductionBlocks.java @@ -118,12 +118,11 @@ public class ProductionBlocks{ stoneformer = new LiquidCrafter("stoneformer"){ { formalName = "stone former"; - input = Item.iron; - inputAmount = 2; + input = null; inputLiquid = Liquid.lava; - liquidAmount = 20f; + liquidAmount = 16f; liquidCapacity = 21f; - purifyTime = 10; + purifyTime = 12; output = Item.stone; health = 80; craftEffect = Fx.purifystone; @@ -135,11 +134,13 @@ public class ProductionBlocks{ lavasmelter = new LiquidCrafter("lavasmelter"){ { formalName = "lava smelter"; + input = Item.iron; + inputAmount = 1; inputLiquid = Liquid.lava; liquidAmount = 40f; liquidCapacity = 41f; purifyTime = 30; - output = Item.stone; + output = Item.steel; health = 80; craftEffect = Fx.purifystone; description = "Converts iron + lava to steel."; diff --git a/core/src/io/anuke/mindustry/world/blocks/types/defense/RepairTurret.java b/core/src/io/anuke/mindustry/world/blocks/types/defense/RepairTurret.java index f26a591cc2..ce76ef65a2 100644 --- a/core/src/io/anuke/mindustry/world/blocks/types/defense/RepairTurret.java +++ b/core/src/io/anuke/mindustry/world/blocks/types/defense/RepairTurret.java @@ -13,22 +13,25 @@ import io.anuke.ucore.util.Angles; import io.anuke.ucore.util.Mathf; import io.anuke.ucore.util.Strings; -public class RepairTurret extends Turret{ +public class RepairTurret extends PowerTurret{ public RepairTurret(String name) { super(name); + powerUsed = 0.1f; } @Override public void getStats(Array list){ list.add("[health]health: " + health); + list.add("[powerinfo]Power Capacity: " + (int)powerCapacity); + list.add("[powerinfo]Power/shot: " + Strings.toFixed(powerUsed, 1)); list.add("[turretinfo]Range: " + (int)range); list.add("[turretinfo]Repairs/Second: " + Strings.toFixed(60f/reload, 1)); } @Override public void postInit(){ - description = "[turretinfo]Range: " + (int)range + "\n[description]Heals nearby tiles."; + description = "[turretinfo]Range: " + (int)range + "\nPower/unit: "+powerUsed+"\n[description]Heals nearby tiles."; } @Override diff --git a/core/src/io/anuke/mindustry/world/blocks/types/production/LiquidCrafter.java b/core/src/io/anuke/mindustry/world/blocks/types/production/LiquidCrafter.java index bcb6945e7b..49f8e7e14b 100644 --- a/core/src/io/anuke/mindustry/world/blocks/types/production/LiquidCrafter.java +++ b/core/src/io/anuke/mindustry/world/blocks/types/production/LiquidCrafter.java @@ -84,7 +84,7 @@ public class LiquidCrafter extends LiquidBlock{ float fract = (float)tile.entity.items.get(input, 0) / itemCapacity; - Vars.renderer.drawBar(Color.GREEN, tile.worldx(), tile.worldy() + 13, fract); + Vars.renderer.drawBar(Color.GREEN, tile.worldx(), tile.worldy() + 6, fract); } @Override