Implemented #2177
This commit is contained in:
@@ -17,6 +17,8 @@ public class Team implements Comparable<Team>{
|
||||
public final byte id;
|
||||
public final int uid;
|
||||
public final Color color;
|
||||
public final Color[] palette;
|
||||
public boolean hasPalette;
|
||||
public String name;
|
||||
|
||||
/** All 256 registered teams. */
|
||||
@@ -26,8 +28,10 @@ public class Team implements Comparable<Team>{
|
||||
|
||||
public final static Team
|
||||
derelict = new Team(0, "derelict", Color.valueOf("4d4e58")),
|
||||
sharded = new Team(1, "sharded", Pal.accent.cpy()),
|
||||
crux = new Team(2, "crux", Color.valueOf("f25555")),
|
||||
sharded = new Team(1, "sharded", Pal.accent.cpy(),
|
||||
Color.valueOf("ffd37f"), Color.valueOf("eab678"), Color.valueOf("d4816b")),
|
||||
crux = new Team(2, "crux", Color.valueOf("f25555"),
|
||||
Color.valueOf("fc8e6c"), Color.valueOf("f25555"), Color.valueOf("a04553")),
|
||||
green = new Team(3, "green", Color.valueOf("4dd98b")),
|
||||
purple = new Team(4, "purple", Color.valueOf("9a4bdf")),
|
||||
blue = new Team(5, "blue", Color.royal.cpy());
|
||||
@@ -54,6 +58,21 @@ public class Team implements Comparable<Team>{
|
||||
uid = us;
|
||||
if(us < 6) baseTeams[us] = this;
|
||||
all[us] = this;
|
||||
|
||||
palette = new Color[3];
|
||||
palette[0] = color;
|
||||
palette[1] = color.cpy().mul(0.75f);
|
||||
palette[2] = color.cpy().mul(0.5f);
|
||||
}
|
||||
|
||||
/** Specifies a 3-color team palette. */
|
||||
protected Team(int id, String name, Color color, Color pal1, Color pal2, Color pal3){
|
||||
this(id, name, color);
|
||||
|
||||
palette[0] = pal1;
|
||||
palette[1] = pal2;
|
||||
palette[2] = pal3;
|
||||
hasPalette = true;
|
||||
}
|
||||
|
||||
/** @return the team-specific rules. */
|
||||
|
||||
Reference in New Issue
Block a user