Harder default waves

This commit is contained in:
Anuken 2020-10-09 13:52:07 -04:00
parent 96656bac6b
commit c78088ab5f
17 changed files with 15 additions and 7 deletions

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.

View File

@ -354,6 +354,7 @@ public class Bullets implements ContentList{
width = 16f; width = 16f;
height = 23f; height = 23f;
shootEffect = Fx.shootBig; shootEffect = Fx.shootBig;
pierceCap = 2;
}}; }};
standardIncendiaryBig = new BasicBulletType(7f, 60, "bullet"){{ standardIncendiaryBig = new BasicBulletType(7f, 60, "bullet"){{
@ -363,6 +364,7 @@ public class Bullets implements ContentList{
backColor = Pal.lightOrange; backColor = Pal.lightOrange;
status = StatusEffects.burning; status = StatusEffects.burning;
shootEffect = Fx.shootBig; shootEffect = Fx.shootBig;
pierceCap = 2;
}}; }};
damageLightning = new BulletType(0.0001f, 0f){{ damageLightning = new BulletType(0.0001f, 0f){{

View File

@ -56,11 +56,11 @@ public class DefaultWaves{
}}, }},
new SpawnGroup(dagger){{ new SpawnGroup(dagger){{
begin = 8; begin = 12;
unitScaling = 1; unitScaling = 1;
unitAmount = 4; unitAmount = 4;
spacing = 2; spacing = 2;
shieldScaling = 15f; shieldScaling = 10f;
max = 20; max = 20;
}}, }},
@ -176,6 +176,7 @@ public class DefaultWaves{
unitAmount = 4; unitAmount = 4;
unitScaling = 1; unitScaling = 1;
spacing = 3; spacing = 3;
shieldScaling = 5f;
}}, }},
new SpawnGroup(scepter){{ new SpawnGroup(scepter){{

View File

@ -1,5 +1,6 @@
package mindustry.game; package mindustry.game;
import arc.util.*;
import arc.util.serialization.*; import arc.util.serialization.*;
import arc.util.serialization.Json.*; import arc.util.serialization.Json.*;
import mindustry.content.*; import mindustry.content.*;
@ -37,8 +38,10 @@ public class SpawnGroup implements Serializable{
/** Amount of enemies spawned initially, with no scaling */ /** Amount of enemies spawned initially, with no scaling */
public int unitAmount = 1; public int unitAmount = 1;
/** Status effect applied to the spawned unit. Null to disable. */ /** Status effect applied to the spawned unit. Null to disable. */
@Nullable
public StatusEffect effect; public StatusEffect effect;
/** Items this unit spawns with. Null to disable. */ /** Items this unit spawns with. Null to disable. */
@Nullable
public ItemStack items; public ItemStack items;
public SpawnGroup(UnitType type){ public SpawnGroup(UnitType type){
@ -90,7 +93,7 @@ public class SpawnGroup implements Serializable{
if(shields != 0) json.writeValue("shields", shields); if(shields != 0) json.writeValue("shields", shields);
if(shieldScaling != 0) json.writeValue("shieldScaling", shieldScaling); if(shieldScaling != 0) json.writeValue("shieldScaling", shieldScaling);
if(unitAmount != 1) json.writeValue("amount", unitAmount); if(unitAmount != 1) json.writeValue("amount", unitAmount);
if(effect != null) json.writeValue("effect", effect.id); if(effect != null) json.writeValue("effect", effect.name);
} }
@Override @Override
@ -107,7 +110,7 @@ public class SpawnGroup implements Serializable{
shields = data.getFloat("shields", 0); shields = data.getFloat("shields", 0);
shieldScaling = data.getFloat("shieldScaling", 0); shieldScaling = data.getFloat("shieldScaling", 0);
unitAmount = data.getInt("amount", 1); 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 @Override

View File

@ -263,8 +263,10 @@ public class SerpuloPlanetGenerator extends PlanetGenerator{
pass((x, y) -> { pass((x, y) -> {
//random moss //random moss
if(floor == Blocks.sporeMoss && rand.chance(0.9)){ if(floor == Blocks.sporeMoss){
floor = Blocks.moss; if(Math.abs(0.5f - noise(x - 90, y, 4, 0.8, 65)) > 0.02){
floor = Blocks.moss;
}
} }
//tar //tar

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=e1341fe49e0966ba2197f98ebac46fcd0d1936b1 archash=2bcb00e8e7580fe57a371786b45d0fba3efe1a5b