mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Campaign balance
This commit is contained in:
parent
7d43856735
commit
61bec243dc
7 changed files with 11 additions and 5 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -24,6 +24,7 @@ public class SectorPresets implements ContentList{
|
|||
|
||||
saltFlats = new SectorPreset("saltFlats", serpulo, 101){{
|
||||
difficulty = 5;
|
||||
useAI = false;
|
||||
}};
|
||||
|
||||
frozenForest = new SectorPreset("frozenForest", serpulo, 86){{
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ public class TechTree implements ContentList{
|
|||
});
|
||||
|
||||
node(additiveReconstructor, Seq.with(new SectorComplete(biomassFacility)), () -> {
|
||||
node(multiplicativeReconstructor, Seq.with(new SectorComplete(overgrowth)), () -> {
|
||||
node(multiplicativeReconstructor, () -> {
|
||||
node(exponentialReconstructor, () -> {
|
||||
node(tetrativeReconstructor, () -> {
|
||||
|
||||
|
|
@ -508,6 +508,7 @@ public class TechTree implements ContentList{
|
|||
|
||||
node(saltFlats, Seq.with(
|
||||
new SectorComplete(windsweptIslands),
|
||||
new Research(commandCenter),
|
||||
new Research(groundFactory),
|
||||
new Research(airFactory),
|
||||
new Research(door),
|
||||
|
|
@ -646,7 +647,7 @@ public class TechTree implements ContentList{
|
|||
static TechNode node(UnlockableContent content, ItemStack[] requirements, Seq<Objective> objectives, Runnable children){
|
||||
TechNode node = new TechNode(context, content, requirements);
|
||||
if(objectives != null){
|
||||
node.objectives = objectives;
|
||||
node.objectives.addAll(objectives);
|
||||
}
|
||||
|
||||
TechNode prev = context;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import mindustry.world.blocks.storage.*;
|
|||
import static mindustry.Vars.*;
|
||||
|
||||
public class SectorDamage{
|
||||
public static final int maxRetWave = 30, maxWavesSimulated = 50;
|
||||
public static final int maxRetWave = 40, maxWavesSimulated = 50;
|
||||
|
||||
//direct damage is for testing only
|
||||
private static final boolean direct = false, rubble = true;
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public class MendProjector extends Block{
|
|||
float heat;
|
||||
float charge = Mathf.random(reload);
|
||||
float phaseHeat;
|
||||
float smoothEfficiency;
|
||||
|
||||
@Override
|
||||
public float range(){
|
||||
|
|
@ -68,6 +69,7 @@ public class MendProjector extends Block{
|
|||
|
||||
@Override
|
||||
public void updateTile(){
|
||||
smoothEfficiency = Mathf.lerpDelta(smoothEfficiency, efficiency(), 0.08f);
|
||||
heat = Mathf.lerpDelta(heat, consValid() || cheating() ? 1f : 0f, 0.08f);
|
||||
charge += heat * delta();
|
||||
|
||||
|
|
@ -115,7 +117,7 @@ public class MendProjector extends Block{
|
|||
|
||||
@Override
|
||||
public void drawLight(){
|
||||
Drawf.light(team, x, y, 50f * efficiency(), baseColor, 0.7f * efficiency());
|
||||
Drawf.light(team, x, y, 50f * smoothEfficiency, baseColor, 0.7f * smoothEfficiency);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ public class OverdriveProjector extends Block{
|
|||
float heat;
|
||||
float charge = Mathf.random(reload);
|
||||
float phaseHeat;
|
||||
float smoothEfficiency;
|
||||
|
||||
@Override
|
||||
public float range(){
|
||||
|
|
@ -73,11 +74,12 @@ public class OverdriveProjector extends Block{
|
|||
|
||||
@Override
|
||||
public void drawLight(){
|
||||
Drawf.light(team, x, y, 50f * efficiency(), baseColor, 0.7f * efficiency());
|
||||
Drawf.light(team, x, y, 50f * smoothEfficiency, baseColor, 0.7f * smoothEfficiency);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTile(){
|
||||
smoothEfficiency = Mathf.lerpDelta(smoothEfficiency, efficiency(), 0.08f);
|
||||
heat = Mathf.lerpDelta(heat, consValid() ? 1f : 0f, 0.08f);
|
||||
charge += heat * Time.delta;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue