Merge pull request #2575 from Voz-Duh/team-colors-for-payload-distributions
Team Colors For Payload Conveyor and Router
This commit is contained in:
@@ -46,7 +46,7 @@ public class PayloadConveyor extends Block{
|
||||
for(int i = 0; i < 4; i++){
|
||||
Building other = world.build(x + Geometry.d4x[i] * size, y + Geometry.d4y[i] * size);
|
||||
if(other != null && other.block.outputsPayload && other.block.size == size){
|
||||
Drawf.selected(other.tileX(), other.tileY(), other.block, Pal.accent);
|
||||
Drawf.selected(other.tileX(), other.tileY(), other.block, other.team.color);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -162,7 +162,7 @@ public class PayloadConveyor extends Block{
|
||||
float dst = 0.8f;
|
||||
|
||||
float glow = Math.max((dst - (Math.abs(fract() - 0.5f) * 2)) / dst, 0);
|
||||
Draw.mixcol(Pal.accent, glow);
|
||||
Draw.mixcol(team.color, glow);
|
||||
|
||||
float trnext = fract() * size * tilesize, trprev = size * tilesize * (fract() - 1), rot = rotdeg();
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ public class PayloadRouter extends PayloadConveyor{
|
||||
|
||||
float dst = 0.8f;
|
||||
|
||||
Draw.mixcol(Pal.accent, Math.max((dst - (Math.abs(fract() - 0.5f) * 2)) / dst, 0));
|
||||
Draw.mixcol(team.color, Math.max((dst - (Math.abs(fract() - 0.5f) * 2)) / dst, 0));
|
||||
Draw.rect(topRegion, x, y, smoothRot);
|
||||
Draw.reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user