launchCapacityMultiplier per-planet
This commit is contained in:
@@ -95,8 +95,6 @@ public class Vars implements Loadable{
|
||||
public static final float buildingRange = 220f;
|
||||
/** range for moving items */
|
||||
public static final float itemTransferRange = 220f;
|
||||
/** multiplier for core item capacity when launching */
|
||||
public static final float launchCapacityMultiplier = 0.25f;
|
||||
/** range for moving items for logic units */
|
||||
public static final float logicItemTransferRange = 45f;
|
||||
/** duration of time between turns in ticks */
|
||||
|
||||
@@ -121,6 +121,7 @@ public class Planets{
|
||||
new HexSkyMesh(this, 1, 0.6f, 0.16f, 5, Color.white.cpy().lerp(Pal.spore, 0.55f).a(0.75f), 2, 0.45f, 1f, 0.41f)
|
||||
);
|
||||
|
||||
launchCapacityMultiplier = 0.5f;
|
||||
sectorSeed = 2;
|
||||
allowWaves = true;
|
||||
allowWaveSimulation = true;
|
||||
|
||||
@@ -75,6 +75,8 @@ public class Planet extends UnlockableContent{
|
||||
public int startSector = 0;
|
||||
/** Seed for sector base generation on this planet. -1 to use a random one based on ID. */
|
||||
public int sectorSeed = -1;
|
||||
/** multiplier for core item capacity when launching */
|
||||
public float launchCapacityMultiplier = 0.25f;
|
||||
/** Whether the bloom render effect is enabled. */
|
||||
public boolean bloom = false;
|
||||
/** Whether this planet is displayed. */
|
||||
|
||||
@@ -7,7 +7,6 @@ import arc.scene.ui.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.game.*;
|
||||
@@ -48,7 +47,7 @@ public class LaunchLoadoutDialog extends BaseDialog{
|
||||
|
||||
//updates sum requirements
|
||||
Runnable update = () -> {
|
||||
int cap = lastCapacity = (int)(Vars.launchCapacityMultiplier * selected.findCore().itemCapacity);
|
||||
int cap = lastCapacity = (int)(sector.planet.launchCapacityMultiplier * selected.findCore().itemCapacity);
|
||||
|
||||
//cap resources based on core type
|
||||
ItemSeq resources = universe.getLaunchResources();
|
||||
|
||||
Reference in New Issue
Block a user