Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
06706da4cf
@ -103,18 +103,17 @@ public class ItemMapRenderer extends MapRenderer
|
||||
if (owningClan.getName().equals("Shops"))
|
||||
{
|
||||
clanColor = Color.WHITE;
|
||||
|
||||
if (relation == ClansUtility.ClanRelation.SAFE)
|
||||
clanColor2 = Color.CYAN;
|
||||
}
|
||||
else if (owningClan.getName().equals("Spawn"))
|
||||
{
|
||||
clanColor = Color.WHITE;
|
||||
clanColor2 = Color.GREEN;
|
||||
}
|
||||
if (owningClan.getName().equals("Fields"))
|
||||
{
|
||||
clanColor = Color.WHITE;
|
||||
clanColor2 = Color.ORANGE;
|
||||
clanColor2 = Color.RED;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -151,11 +150,6 @@ public class ItemMapRenderer extends MapRenderer
|
||||
int chunkX1 = (int) Math.floor(blockX / 16D);
|
||||
int chunkZ1 = (int) Math.floor(blockZ / 16D);
|
||||
|
||||
//Checkin'
|
||||
boolean checker = (mapX + (mapZ % 3)) % 3 == 0;
|
||||
Color drawColor = clanColor;
|
||||
if (checker && clanColor2 != null)
|
||||
drawColor = clanColor2;
|
||||
|
||||
//Inside
|
||||
if (colorAll ||
|
||||
@ -178,6 +172,16 @@ public class ItemMapRenderer extends MapRenderer
|
||||
{
|
||||
Color cColor = MapPalette.getColor(color);
|
||||
double clans = colorAll ? 1 : 0.8;// 0.65;
|
||||
|
||||
//Stripes
|
||||
boolean checker = (mapX + (mapZ % 3)) % 3 == 0;
|
||||
Color drawColor = clanColor;
|
||||
if (checker && clanColor2 != null)
|
||||
{
|
||||
drawColor = clanColor2;
|
||||
clans = 0.65;
|
||||
}
|
||||
|
||||
double base = 1 - clans;
|
||||
|
||||
int r = (int) ((cColor.getRed() * base) + (drawColor.getRed() * clans));
|
||||
@ -192,6 +196,14 @@ public class ItemMapRenderer extends MapRenderer
|
||||
Color cColor = MapPalette.getColor(color);
|
||||
|
||||
double clans = 0.65;// 0.4;
|
||||
|
||||
//Use clanColor2 no matter what for admins
|
||||
Color drawColor = clanColor;
|
||||
if (owningClan.isAdmin() && clanColor2 != null)
|
||||
{
|
||||
drawColor = clanColor2;
|
||||
}
|
||||
|
||||
double base = 1 - clans;
|
||||
|
||||
int r = (int) ((cColor.getRed() * base) + (drawColor.getRed() * clans));
|
||||
|
Loading…
Reference in New Issue
Block a user