Team Colors For Payload Conveyor and Router

This commit is contained in:
Voz-Duh
2020-09-17 16:34:34 +03:00
parent ce2dd89f44
commit 6145b1c95c
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,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);
}
}
}
@@ -156,7 +156,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();

View File

@@ -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();