reinforced vault/container

This commit is contained in:
Anuken 2021-11-24 18:28:50 -05:00
parent b7ac1e1d74
commit 78590abfc0
11 changed files with 22 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -459,3 +459,4 @@
63247=phase-synthesizer|block-phase-synthesizer-ui 63247=phase-synthesizer|block-phase-synthesizer-ui
63246=sublimate|block-sublimate-ui 63246=sublimate|block-sublimate-ui
63245=reinforced-container|block-reinforced-container-ui 63245=reinforced-container|block-reinforced-container-ui
63244=reinforced-vault|block-reinforced-vault-ui

Binary file not shown.

View File

@ -1109,9 +1109,11 @@ public class Blocks implements ContentList{
strokeMax = 2.5f; strokeMax = 2.5f;
radius = 10f; radius = 10f;
amount = 3; amount = 3;
}}, new DrawLiquidRegion(Liquids.slag), new DrawBlock(), new DrawHeatInput(), new DrawHeatRegion(){{ }}, new DrawLiquidRegion(Liquids.slag), new DrawBlock(), new DrawHeatInput(),
new DrawHeatRegion(){{
heatColor = Color.valueOf("ff6060ff"); heatColor = Color.valueOf("ff6060ff");
}}, new DrawHeatRegion("-vents"){{ }},
new DrawHeatRegion("-vents"){{
heatColor.a = 1f; heatColor.a = 1f;
}}); }});
iconOverride = new String[]{"-bottom", ""}; iconOverride = new String[]{"-bottom", ""};
@ -2147,12 +2149,20 @@ public class Blocks implements ContentList{
}}; }};
reinforcedContainer = new StorageBlock("reinforced-container"){{ reinforcedContainer = new StorageBlock("reinforced-container"){{
requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125)); requirements(Category.effect, with(Items.tungsten, 250, Items.graphite, 100));
size = 3; size = 3;
//TODO should it really be kept the same, at 1000?
itemCapacity = 1000; itemCapacity = 1000;
health = size * size * 120; health = size * size * 120;
}}; }};
reinforcedVault = new StorageBlock("reinforced-vault"){{
requirements(Category.effect, with(Items.tungsten, 250, Items.graphite, 100));
size = 4;
itemCapacity = 2500;
health = size * size * 120;
}};
//endregion //endregion
//region turrets //region turrets

View File

@ -42,6 +42,7 @@ public class Bullets implements ContentList{
status = StatusEffects.shocked; status = StatusEffects.shocked;
statusDuration = 10f; statusDuration = 10f;
hittable = false; hittable = false;
lightColor = Color.white;
}}; }};
//this is just a copy of the damage lightning bullet that doesn't damage air units //this is just a copy of the damage lightning bullet that doesn't damage air units

View File

@ -55,7 +55,7 @@ public class LaserTurret extends PowerTurret{
public void updateTile(){ public void updateTile(){
super.updateTile(); super.updateTile();
if(!bullet.isAdded() || bullet.type == null){ if(bullet != null && (!bullet.isAdded() || bullet.type == null)){
bullet = null; bullet = null;
} }

View File

@ -11,6 +11,7 @@ import mindustry.world.*;
public class DrawRegion extends DrawBlock{ public class DrawRegion extends DrawBlock{
public TextureRegion region; public TextureRegion region;
public String suffix = ""; public String suffix = "";
public float rotateSpeed, x, y;
/** Any number <=0 disables layer changes. */ /** Any number <=0 disables layer changes. */
public float layer = -1; public float layer = -1;
@ -25,7 +26,7 @@ public class DrawRegion extends DrawBlock{
public void drawBase(Building build){ public void drawBase(Building build){
float z = Draw.z(); float z = Draw.z();
if(layer > 0) Draw.z(layer); if(layer > 0) Draw.z(layer);
Draw.rect(region, build.x, build.y); Draw.rect(region, build.x + x, build.y + y, build.totalProgress() * rotateSpeed);
Draw.z(z); Draw.z(z);
} }

View File

@ -250,8 +250,10 @@ task pack(dependsOn: [classes, configurations.runtimeClasspath]){
if(!file.isDirectory()) file.file.text = file.file.text.replace("4096", "2048") if(!file.isDirectory()) file.file.text = file.file.text.replace("4096", "2048")
} }
//pack fallback 2048x2048 sprites //pack fallback 2048x2048 sprites - disabled when debugging
TexturePacker.process(new File(rootDir, "core/assets-raw/sprites_out/").absolutePath, new File(rootDir, "core/assets/sprites/fallback/").absolutePath, "sprites.aatls") if(!project.hasProperty("args")){
TexturePacker.process(new File(rootDir, "core/assets-raw/sprites_out/").absolutePath, new File(rootDir, "core/assets/sprites/fallback/").absolutePath, "sprites.aatls")
}
} }
} }