Updated desolate rift / Spawning fixes

This commit is contained in:
Anuken
2019-04-26 23:23:45 -04:00
parent d827cda395
commit 768d67a8ae
6 changed files with 9 additions and 13 deletions

Binary file not shown.

View File

@@ -168,15 +168,15 @@ public class Zones implements ContentList{
loadout = Loadouts.basicNucleus; loadout = Loadouts.basicNucleus;
baseLaunchCost = ItemStack.with(); baseLaunchCost = ItemStack.with();
startingItems = ItemStack.list(Items.copper, 1500); startingItems = ItemStack.list(Items.copper, 1500);
conditionWave = 10; conditionWave = 3;
launchPeriod = 20; launchPeriod = 1;
zoneRequirements = ZoneRequirement.with(tarFields, 20); zoneRequirements = ZoneRequirement.with(tarFields, 20);
blockRequirements = new Block[]{Blocks.thermalGenerator}; blockRequirements = new Block[]{Blocks.thermalGenerator};
resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.sand}; resources = new Item[]{Items.copper, Items.scrap, Items.lead, Items.coal, Items.titanium, Items.sand, Items.thorium};
rules = () -> new Rules(){{ rules = () -> new Rules(){{
waves = true; waves = true;
waveTimer = true; waveTimer = true;
waveSpacing = 60 * 60 * 1.3f; waveSpacing = 60 * 60 * 2.5f;
}}; }};
}}; }};

View File

@@ -79,7 +79,9 @@ public class MapGenerateDialog extends FloatingDialog{
cont.clear(); cont.clear();
cont.table("flat", t -> { cont.table("flat", t -> {
t.margin(8f); t.margin(8f);
t.stack(new BorderImage(texture), new Stack(){{ t.stack(new BorderImage(texture){{
setScaling(Scaling.fit);
}}, new Stack(){{
add(new Image("loadDim")); add(new Image("loadDim"));
add(new Image("icon-refresh"){{ add(new Image("icon-refresh"){{
setScaling(Scaling.none); setScaling(Scaling.none);

View File

@@ -48,9 +48,7 @@ public class SpawnGroup implements Serializable{
if(wave < begin || wave > end || (wave - begin) % spacing != 0){ if(wave < begin || wave > end || (wave - begin) % spacing != 0){
return 0; return 0;
} }
float scaling = this.unitScaling; return Math.min(unitAmount + (int)(((wave - begin) / spacing) / unitScaling), max);
return Math.min(unitAmount - 1 + Math.max((int)(((wave - begin + 1) / spacing) / scaling), 1), max);
} }
/** /**

View File

@@ -25,10 +25,6 @@ public class Maps implements Disposable{
/** Serializer for meta. */ /** Serializer for meta. */
private Json json = new Json(); private Json json = new Json();
public Maps(){
}
/** Returns a list of all maps, including custom ones. */ /** Returns a list of all maps, including custom ones. */
public Array<Map> all(){ public Array<Map> all(){
return maps; return maps;

View File

@@ -436,7 +436,7 @@ public class Block extends BlockStorage{
float capacity = consumes.getPower().powerCapacity; float capacity = consumes.getPower().powerCapacity;
bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.poweramount", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) : bars.add("power", entity -> new Bar(() -> buffered ? Core.bundle.format("bar.poweramount", Float.isNaN(entity.power.satisfaction * capacity) ? "<ERROR>" : (int)(entity.power.satisfaction * capacity)) :
Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction)); Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction));
} }
if(hasItems && configurable){ if(hasItems && configurable){