This commit is contained in:
Anuken
2020-06-08 17:19:47 -04:00
parent 87ab895253
commit 8ea28e1ced
147 changed files with 438 additions and 437 deletions

View File

@@ -120,8 +120,8 @@ public class Fx{
}),
lightning = new Effect(10f, 500f, e -> {
if(!(e.data instanceof Array)) return;
Array<Vec2> lines = e.data();
if(!(e.data instanceof Seq)) return;
Seq<Vec2> lines = e.data();
stroke(3f * e.fout());
color(e.color, Color.white, e.fin());

View File

@@ -4,7 +4,7 @@ import mindustry.ctype.*;
import mindustry.game.Objectives.*;
import mindustry.type.*;
import static arc.struct.Array.with;
import static arc.struct.Seq.with;
import static mindustry.content.Items.*;
import static mindustry.content.Planets.starter;
import static mindustry.type.ItemStack.list;

View File

@@ -11,13 +11,13 @@ import mindustry.world.*;
import static mindustry.content.Blocks.*;
public class TechTree implements ContentList{
public static Array<TechNode> all;
public static Seq<TechNode> all;
public static TechNode root;
@Override
public void load(){
TechNode.context = null;
all = new Array<>();
all = new Seq<>();
root = node(coreShard, () -> {
@@ -328,7 +328,7 @@ public class TechTree implements ContentList{
/** Research turns required to research this content. */
public int turns = 3; //TODO keep track of turns that have been used so far
/** Nodes that depend on this node. */
public final Array<TechNode> children = new Array<>();
public final Seq<TechNode> children = new Seq<>();
TechNode(TechNode ccontext, UnlockableContent content, ItemStack[] requirements, Runnable children){
if(ccontext != null){