Don't draw power beams for derelict blocks

This commit is contained in:
Anuken
2024-11-28 16:55:55 -05:00
parent 52eab0b0c4
commit 8672dcf9f9
3 changed files with 5 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ public class BeamNode extends PowerBlock{
public void draw(){
super.draw();
if(Mathf.zero(Renderer.laserOpacity)) return;
if(Mathf.zero(Renderer.laserOpacity) || team == Team.derelict) return;
Draw.z(Layer.power);
Draw.color(laserColor1, laserColor2, (1f - power.graph.getSatisfaction()) * 0.86f + Mathf.absin(3f, 0.1f));

View File

@@ -472,7 +472,7 @@ public class PowerNode extends PowerBlock{
public void draw(){
super.draw();
if(Mathf.zero(Renderer.laserOpacity) || isPayload()) return;
if(Mathf.zero(Renderer.laserOpacity) || isPayload() || team == Team.derelict) return;
Draw.z(Layer.power);
setupColor(power.graph.getSatisfaction());