Merge branch 'master' of https://github.com/Anuken/Mindustry into 7.0-features
Conflicts: core/src/mindustry/content/Blocks.java core/src/mindustry/net/CrashSender.java core/src/mindustry/ui/Links.java core/src/mindustry/ui/dialogs/SchematicsDialog.java core/src/mindustry/world/blocks/power/LightBlock.java gradle.properties
This commit is contained in:
@@ -365,7 +365,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
shale = new Floor("shale"){{
|
||||
variants = 3;
|
||||
attributes.set(Attribute.oil, 1.2f);
|
||||
attributes.set(Attribute.oil, 1.6f);
|
||||
}};
|
||||
|
||||
moss = new Floor("moss"){{
|
||||
@@ -544,6 +544,9 @@ public class Blocks implements ContentList{
|
||||
|
||||
darkMetal = new StaticWall("dark-metal");
|
||||
|
||||
Seq.with(metalFloor, metalFloorDamaged, metalFloor2, metalFloor3, metalFloor4, metalFloor5, darkPanel1, darkPanel2, darkPanel3, darkPanel4, darkPanel5, darkPanel6)
|
||||
.each(b -> b.asFloor().wall = darkMetal);
|
||||
|
||||
pebbles = new DoubleOverlayFloor("pebbles");
|
||||
|
||||
tendrils = new OverlayFloor("tendrils");
|
||||
@@ -858,7 +861,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
coalCentrifuge = new GenericCrafter("coal-centrifuge"){{
|
||||
requirements(Category.crafting, with(Items.titanium, 20, Items.graphite, 40, Items.lead, 30));
|
||||
craftEffect = Fx.smeltsmoke;
|
||||
craftEffect = Fx.coalSmeltsmoke;
|
||||
outputItem = new ItemStack(Items.coal, 1);
|
||||
craftTime = 30f;
|
||||
size = 2;
|
||||
@@ -1190,7 +1193,6 @@ public class Blocks implements ContentList{
|
||||
reloadTime = 200f;
|
||||
range = 440f;
|
||||
consumes.power(1.75f);
|
||||
bullet = new MassDriverBolt();
|
||||
}};
|
||||
|
||||
//special transport blocks
|
||||
@@ -1337,6 +1339,7 @@ public class Blocks implements ContentList{
|
||||
requirements(Category.power, with(Items.copper, 40, Items.graphite, 35, Items.lead, 50, Items.silicon, 35, Items.metaglass, 40));
|
||||
powerProduction = 1.8f;
|
||||
generateEffect = Fx.redgeneratespark;
|
||||
effectChance = 0.011f;
|
||||
size = 2;
|
||||
floating = true;
|
||||
ambientSound = Sounds.hum;
|
||||
@@ -1581,14 +1584,14 @@ public class Blocks implements ContentList{
|
||||
requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125));
|
||||
size = 3;
|
||||
itemCapacity = 1000;
|
||||
health = size * size * 55;
|
||||
health = size * size * 60;
|
||||
}};
|
||||
|
||||
container = new StorageBlock("container"){{
|
||||
requirements(Category.effect, with(Items.titanium, 100));
|
||||
size = 2;
|
||||
itemCapacity = 300;
|
||||
health = size * size * 55;
|
||||
health = size * size * 60;
|
||||
}};
|
||||
|
||||
unloader = new Unloader("unloader"){{
|
||||
|
||||
@@ -1526,13 +1526,16 @@ public class Fx{
|
||||
});
|
||||
}),
|
||||
|
||||
redgeneratespark = new Effect(18, e -> {
|
||||
randLenVectors(e.id, 5, e.fin() * 8f, (x, y) -> {
|
||||
float len = e.fout() * 4f;
|
||||
color(Pal.redSpark, Color.gray, e.fin());
|
||||
Fill.circle(e.x + x, e.y + y, len/2f);
|
||||
});
|
||||
}),
|
||||
redgeneratespark = new Effect(90, e -> {
|
||||
color(Pal.redSpark);
|
||||
alpha(e.fslope());
|
||||
|
||||
rand.setSeed(e.id);
|
||||
for(int i = 0; i < 2; i++){
|
||||
v.trns(rand.random(360f), rand.random(e.finpow() * 9f)).add(e.x, e.y);
|
||||
Fill.circle(v.x, v.y, rand.random(1.4f, 2.4f));
|
||||
}
|
||||
}).layer(Layer.bullet - 1f),
|
||||
|
||||
generatespark = new Effect(18, e -> {
|
||||
randLenVectors(e.id, 5, e.fin() * 8f, (x, y) -> {
|
||||
@@ -1622,6 +1625,13 @@ public class Fx{
|
||||
});
|
||||
}),
|
||||
|
||||
coalSmeltsmoke = new Effect(40f, e -> {
|
||||
randLenVectors(e.id, 0.2f + e.fin(), 4, 6.3f, (x, y, fin, out) -> {
|
||||
color(Color.darkGray, Pal.coalBlack, e.finpowdown());
|
||||
Fill.circle(e.x + x, e.y + y, out * 2f + 0.25f);
|
||||
});
|
||||
}),
|
||||
|
||||
formsmoke = new Effect(40, e -> {
|
||||
randLenVectors(e.id, 6, 5f + e.fin() * 8f, (x, y) -> {
|
||||
color(Pal.plasticSmoke, Color.lightGray, e.fin());
|
||||
|
||||
@@ -12,7 +12,7 @@ import mindustry.graphics.*;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class StatusEffects implements ContentList{
|
||||
public static StatusEffect none, burning, freezing, unmoving, slow, wet, muddy, melting, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss, sporeSlowed, disarmed, electrified;
|
||||
public static StatusEffect none, burning, freezing, unmoving, slow, wet, muddy, melting, sapped, tarred, overdrive, overclock, shielded, shocked, blasted, corroded, boss, sporeSlowed, disarmed, electrified, invincible;
|
||||
|
||||
@Override
|
||||
public void load(){
|
||||
@@ -188,5 +188,9 @@ public class StatusEffects implements ContentList{
|
||||
color = Color.valueOf("e9ead3");
|
||||
disarm = true;
|
||||
}};
|
||||
|
||||
invincible = new StatusEffect("invincible"){{
|
||||
healthMultiplier = Float.POSITIVE_INFINITY;
|
||||
}};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user