mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Balancing / Wall renaming
This commit is contained in:
parent
f229f1e9fe
commit
1290d1e9d4
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 155 B |
Before Width: | Height: | Size: 94 B After Width: | Height: | Size: 94 B |
@ -512,8 +512,8 @@ block.blackrock.name=blackrock
|
|||||||
block.icerock.name=icerock
|
block.icerock.name=icerock
|
||||||
block.copper-wall.name=Copper Wall
|
block.copper-wall.name=Copper Wall
|
||||||
block.copper-wall-large.name=Large Copper Wall
|
block.copper-wall-large.name=Large Copper Wall
|
||||||
block.composite-wall.name=Composite Wall
|
block.dense-alloy-wall.name=Dense Alloy Wall
|
||||||
block.composite-wall-large.name=Large Composite Wall
|
block.dense-alloy-wall-large.name=Large Dense Alloy Wall
|
||||||
block.phase-wall.name=Phase Wall
|
block.phase-wall.name=Phase Wall
|
||||||
block.phase-wall-large.name=Large Phase Wall
|
block.phase-wall-large.name=Large Phase Wall
|
||||||
block.thorium-wall.name=Thorium Wall
|
block.thorium-wall.name=Thorium Wall
|
||||||
|
@ -2622,79 +2622,51 @@ command-center
|
|||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-composite-wall
|
|
||||||
rotate: false
|
|
||||||
xy: 999, 443
|
|
||||||
size: 8, 8
|
|
||||||
orig: 8, 8
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
composite-wall
|
|
||||||
rotate: false
|
|
||||||
xy: 999, 443
|
|
||||||
size: 8, 8
|
|
||||||
orig: 8, 8
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
block-icon-composite-wall-large
|
|
||||||
rotate: false
|
|
||||||
xy: 421, 340
|
|
||||||
size: 16, 16
|
|
||||||
orig: 16, 16
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
composite-wall-large
|
|
||||||
rotate: false
|
|
||||||
xy: 421, 340
|
|
||||||
size: 16, 16
|
|
||||||
orig: 16, 16
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
block-icon-conduit
|
block-icon-conduit
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 619, 431
|
xy: 999, 443
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-conveyor
|
block-icon-conveyor
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 619, 421
|
xy: 619, 431
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
conveyor-0-0
|
conveyor-0-0
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 619, 421
|
xy: 619, 431
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-copper-wall
|
block-icon-copper-wall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 629, 431
|
xy: 619, 421
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
copper-wall
|
copper-wall
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 629, 431
|
xy: 619, 421
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-copper-wall-large
|
block-icon-copper-wall-large
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 439, 435
|
xy: 421, 340
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
copper-wall-large
|
copper-wall-large
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 439, 435
|
xy: 421, 340
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@ -2715,14 +2687,14 @@ core
|
|||||||
index: -1
|
index: -1
|
||||||
block-icon-cryofluidmixer
|
block-icon-cryofluidmixer
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 439, 417
|
xy: 439, 435
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-cultivator
|
block-icon-cultivator
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 457, 435
|
xy: 439, 417
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
@ -2736,47 +2708,75 @@ block-icon-cyclone
|
|||||||
index: -1
|
index: -1
|
||||||
block-icon-dagger-pad
|
block-icon-dagger-pad
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 439, 399
|
xy: 457, 435
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-dart-ship-factory
|
block-icon-dart-ship-factory
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 457, 417
|
xy: 439, 399
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
dart-ship-factory
|
dart-ship-factory
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 457, 417
|
xy: 439, 399
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-deepwater
|
block-icon-deepwater
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 619, 411
|
xy: 629, 431
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
deepwater
|
deepwater
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 619, 411
|
xy: 629, 431
|
||||||
size: 8, 8
|
size: 8, 8
|
||||||
orig: 8, 8
|
orig: 8, 8
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
block-icon-delta-mech-factory
|
block-icon-delta-mech-factory
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 475, 435
|
xy: 457, 417
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
orig: 16, 16
|
orig: 16, 16
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
delta-mech-factory
|
delta-mech-factory
|
||||||
|
rotate: false
|
||||||
|
xy: 457, 417
|
||||||
|
size: 16, 16
|
||||||
|
orig: 16, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
block-icon-dense-alloy-wall
|
||||||
|
rotate: false
|
||||||
|
xy: 619, 411
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
dense-alloy-wall
|
||||||
|
rotate: false
|
||||||
|
xy: 619, 411
|
||||||
|
size: 8, 8
|
||||||
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
block-icon-dense-alloy-wall-large
|
||||||
|
rotate: false
|
||||||
|
xy: 475, 435
|
||||||
|
size: 16, 16
|
||||||
|
orig: 16, 16
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
dense-alloy-wall-large
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 475, 435
|
xy: 475, 435
|
||||||
size: 16, 16
|
size: 16, 16
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
@ -19,8 +19,8 @@ public class Recipes implements ContentList{
|
|||||||
new Recipe(defense, DefenseBlocks.copperWall, new ItemStack(Items.copper, 12));
|
new Recipe(defense, DefenseBlocks.copperWall, new ItemStack(Items.copper, 12));
|
||||||
new Recipe(defense, DefenseBlocks.copperWallLarge, new ItemStack(Items.copper, 12 * 4));
|
new Recipe(defense, DefenseBlocks.copperWallLarge, new ItemStack(Items.copper, 12 * 4));
|
||||||
|
|
||||||
new Recipe(defense, DefenseBlocks.compositeWall, new ItemStack(Items.densealloy, 12));
|
new Recipe(defense, DefenseBlocks.denseAlloyWall, new ItemStack(Items.densealloy, 12));
|
||||||
new Recipe(defense, DefenseBlocks.compositeWallLarge, new ItemStack(Items.densealloy, 12 * 4));
|
new Recipe(defense, DefenseBlocks.denseAlloyWallLarge, new ItemStack(Items.densealloy, 12 * 4));
|
||||||
|
|
||||||
new Recipe(defense, DefenseBlocks.door, new ItemStack(Items.densealloy, 12), new ItemStack(Items.silicon, 8));
|
new Recipe(defense, DefenseBlocks.door, new ItemStack(Items.densealloy, 12), new ItemStack(Items.silicon, 8));
|
||||||
new Recipe(defense, DefenseBlocks.doorLarge, new ItemStack(Items.densealloy, 12 * 4), new ItemStack(Items.silicon, 8 * 4));
|
new Recipe(defense, DefenseBlocks.doorLarge, new ItemStack(Items.densealloy, 12 * 4), new ItemStack(Items.silicon, 8 * 4));
|
||||||
|
@ -114,10 +114,9 @@ public class DebugBlocks extends BlockList implements ContentList{
|
|||||||
for(int i = 0; i < items.size; i++){
|
for(int i = 0; i < items.size; i++){
|
||||||
if(i == 0) continue;
|
if(i == 0) continue;
|
||||||
final int f = i;
|
final int f = i;
|
||||||
ImageButton button = cont.addImageButton("white", "toggle", 24, () -> {
|
ImageButton button = cont.addImageButton("liquid-icon-" + items.get(i).name, "toggle", 24, () -> {
|
||||||
Call.setLiquidSourceLiquid(null, tile, items.get(f));
|
Call.setLiquidSourceLiquid(null, tile, items.get(f));
|
||||||
}).size(38, 42).padBottom(-5.1f).group(group).get();
|
}).size(38, 42).padBottom(-5.1f).group(group).get();
|
||||||
button.getStyle().imageUpColor = items.get(i).color;
|
|
||||||
button.setChecked(entity.source.id == f);
|
button.setChecked(entity.source.id == f);
|
||||||
|
|
||||||
if(i % 4 == 3){
|
if(i % 4 == 3){
|
||||||
|
@ -7,7 +7,7 @@ import io.anuke.mindustry.world.Block;
|
|||||||
import io.anuke.mindustry.world.blocks.defense.*;
|
import io.anuke.mindustry.world.blocks.defense.*;
|
||||||
|
|
||||||
public class DefenseBlocks extends BlockList implements ContentList{
|
public class DefenseBlocks extends BlockList implements ContentList{
|
||||||
public static Block copperWall, copperWallLarge, compositeWall, compositeWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge,
|
public static Block copperWall, copperWallLarge, denseAlloyWall, denseAlloyWallLarge, thoriumWall, thoriumWallLarge, door, doorLarge,
|
||||||
phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mendProjector, overdriveProjector, forceProjector, shockMine;
|
phaseWall, phaseWallLarge, surgeWall, surgeWallLarge, mendProjector, overdriveProjector, forceProjector, shockMine;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -23,11 +23,11 @@ public class DefenseBlocks extends BlockList implements ContentList{
|
|||||||
size = 2;
|
size = 2;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
compositeWall = new Wall("composite-wall"){{
|
denseAlloyWall = new Wall("dense-alloy-wall"){{
|
||||||
health = 110 * wallHealthMultiplier;
|
health = 110 * wallHealthMultiplier;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
compositeWallLarge = new Wall("composite-wall-large"){{
|
denseAlloyWallLarge = new Wall("dense-alloy-wall-large"){{
|
||||||
health = 110 * wallHealthMultiplier * 4;
|
health = 110 * wallHealthMultiplier * 4;
|
||||||
size = 2;
|
size = 2;
|
||||||
}};
|
}};
|
||||||
|
@ -217,10 +217,12 @@ public class TurretBlocks extends BlockList implements ContentList{
|
|||||||
spectre = new DoubleTurret("spectre"){{
|
spectre = new DoubleTurret("spectre"){{
|
||||||
ammoTypes = new AmmoType[]{AmmoTypes.bulletDenseBig, AmmoTypes.bulletPyratiteBig, AmmoTypes.bulletThoriumBig};
|
ammoTypes = new AmmoType[]{AmmoTypes.bulletDenseBig, AmmoTypes.bulletPyratiteBig, AmmoTypes.bulletThoriumBig};
|
||||||
reload = 4f;
|
reload = 4f;
|
||||||
|
coolantMultiplier = 0.5f;
|
||||||
|
maxCoolantUsed = 1.5f;
|
||||||
restitution = 0.1f;
|
restitution = 0.1f;
|
||||||
ammoUseEffect = ShootFx.shellEjectBig;
|
ammoUseEffect = ShootFx.shellEjectBig;
|
||||||
range = 200f;
|
range = 200f;
|
||||||
inaccuracy = 4f;
|
inaccuracy = 3f;
|
||||||
recoil = 3f;
|
recoil = 3f;
|
||||||
xRand = 3f;
|
xRand = 3f;
|
||||||
shotWidth = 4f;
|
shotWidth = 4f;
|
||||||
|
@ -15,7 +15,7 @@ public class CooledTurret extends Turret{
|
|||||||
/**How much reload is lowered by for each unit of liquid of heat capacity 1.*/
|
/**How much reload is lowered by for each unit of liquid of heat capacity 1.*/
|
||||||
protected float coolantMultiplier = 1f;
|
protected float coolantMultiplier = 1f;
|
||||||
/**Max coolant used per tick.*/
|
/**Max coolant used per tick.*/
|
||||||
protected float maxUsed = 1f;
|
protected float maxCoolantUsed = 1f;
|
||||||
protected Effect coolEffect = BlockFx.fuelburn;
|
protected Effect coolEffect = BlockFx.fuelburn;
|
||||||
|
|
||||||
public CooledTurret(String name){
|
public CooledTurret(String name){
|
||||||
@ -33,7 +33,7 @@ public class CooledTurret extends Turret{
|
|||||||
TurretEntity entity = tile.entity();
|
TurretEntity entity = tile.entity();
|
||||||
Liquid liquid = entity.liquids.current();
|
Liquid liquid = entity.liquids.current();
|
||||||
|
|
||||||
float used = Math.min(Math.min(entity.liquids.get(liquid), maxUsed * Timers.delta()), Math.max(0, ((reload - entity.reload) / coolantMultiplier) / liquid.heatCapacity));
|
float used = Math.min(Math.min(entity.liquids.get(liquid), maxCoolantUsed * Timers.delta()), Math.max(0, ((reload - entity.reload) / coolantMultiplier) / liquid.heatCapacity));
|
||||||
entity.reload += (used * liquid.heatCapacity) / liquid.heatCapacity;
|
entity.reload += (used * liquid.heatCapacity) / liquid.heatCapacity;
|
||||||
entity.liquids.remove(liquid, used);
|
entity.liquids.remove(liquid, used);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user