mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-11 18:39:16 +07:00
Harder default waves
This commit is contained in:
parent
96656bac6b
commit
c78088ab5f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -354,6 +354,7 @@ public class Bullets implements ContentList{
|
||||
width = 16f;
|
||||
height = 23f;
|
||||
shootEffect = Fx.shootBig;
|
||||
pierceCap = 2;
|
||||
}};
|
||||
|
||||
standardIncendiaryBig = new BasicBulletType(7f, 60, "bullet"){{
|
||||
@ -363,6 +364,7 @@ public class Bullets implements ContentList{
|
||||
backColor = Pal.lightOrange;
|
||||
status = StatusEffects.burning;
|
||||
shootEffect = Fx.shootBig;
|
||||
pierceCap = 2;
|
||||
}};
|
||||
|
||||
damageLightning = new BulletType(0.0001f, 0f){{
|
||||
|
@ -56,11 +56,11 @@ public class DefaultWaves{
|
||||
}},
|
||||
|
||||
new SpawnGroup(dagger){{
|
||||
begin = 8;
|
||||
begin = 12;
|
||||
unitScaling = 1;
|
||||
unitAmount = 4;
|
||||
spacing = 2;
|
||||
shieldScaling = 15f;
|
||||
shieldScaling = 10f;
|
||||
max = 20;
|
||||
}},
|
||||
|
||||
@ -176,6 +176,7 @@ public class DefaultWaves{
|
||||
unitAmount = 4;
|
||||
unitScaling = 1;
|
||||
spacing = 3;
|
||||
shieldScaling = 5f;
|
||||
}},
|
||||
|
||||
new SpawnGroup(scepter){{
|
||||
|
@ -1,5 +1,6 @@
|
||||
package mindustry.game;
|
||||
|
||||
import arc.util.*;
|
||||
import arc.util.serialization.*;
|
||||
import arc.util.serialization.Json.*;
|
||||
import mindustry.content.*;
|
||||
@ -37,8 +38,10 @@ public class SpawnGroup implements Serializable{
|
||||
/** Amount of enemies spawned initially, with no scaling */
|
||||
public int unitAmount = 1;
|
||||
/** Status effect applied to the spawned unit. Null to disable. */
|
||||
@Nullable
|
||||
public StatusEffect effect;
|
||||
/** Items this unit spawns with. Null to disable. */
|
||||
@Nullable
|
||||
public ItemStack items;
|
||||
|
||||
public SpawnGroup(UnitType type){
|
||||
@ -90,7 +93,7 @@ public class SpawnGroup implements Serializable{
|
||||
if(shields != 0) json.writeValue("shields", shields);
|
||||
if(shieldScaling != 0) json.writeValue("shieldScaling", shieldScaling);
|
||||
if(unitAmount != 1) json.writeValue("amount", unitAmount);
|
||||
if(effect != null) json.writeValue("effect", effect.id);
|
||||
if(effect != null) json.writeValue("effect", effect.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -107,7 +110,7 @@ public class SpawnGroup implements Serializable{
|
||||
shields = data.getFloat("shields", 0);
|
||||
shieldScaling = data.getFloat("shieldScaling", 0);
|
||||
unitAmount = data.getInt("amount", 1);
|
||||
effect = content.getByID(ContentType.status, data.getInt("effect", -1));
|
||||
effect = content.getByName(ContentType.status, data.hasChild("effect") && data.getChild("effect").isString() ? data.getString("effect", "none") : "none");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -263,9 +263,11 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
|
||||
|
||||
pass((x, y) -> {
|
||||
//random moss
|
||||
if(floor == Blocks.sporeMoss && rand.chance(0.9)){
|
||||
if(floor == Blocks.sporeMoss){
|
||||
if(Math.abs(0.5f - noise(x - 90, y, 4, 0.8, 65)) > 0.02){
|
||||
floor = Blocks.moss;
|
||||
}
|
||||
}
|
||||
|
||||
//tar
|
||||
if(floor == Blocks.darksand){
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=e1341fe49e0966ba2197f98ebac46fcd0d1936b1
|
||||
archash=2bcb00e8e7580fe57a371786b45d0fba3efe1a5b
|
||||
|
Loading…
Reference in New Issue
Block a user