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;
baseLaunchCost = ItemStack.with();
startingItems = ItemStack.list(Items.copper, 1500);
conditionWave = 10;
launchPeriod = 20;
conditionWave = 3;
launchPeriod = 1;
zoneRequirements = ZoneRequirement.with(tarFields, 20);
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(){{
waves = 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.table("flat", t -> {
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("icon-refresh"){{
setScaling(Scaling.none);

View File

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

View File

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

View File

@ -436,7 +436,7 @@ public class Block extends BlockStorage{
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)) :
Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction));
Core.bundle.get("bar.power"), () -> Pal.powerBar, () -> entity.power.satisfaction));
}
if(hasItems && configurable){