Bugfixes & Onset items

This commit is contained in:
Anuken
2022-01-23 17:15:23 -05:00
parent d66c386881
commit bfe893adfb
5 changed files with 21 additions and 28 deletions
@@ -1,25 +0,0 @@
package mindustry.world.blocks.environment;
import arc.graphics.g2d.*;
import arc.math.*;
import mindustry.annotations.Annotations.*;
import mindustry.world.*;
public class StaticCoralWall extends StaticWall{
public @Load(value = "@-cluster#", length = 1) TextureRegion[] clusters;
public StaticCoralWall(String name){
super(name);
variants = 1;
}
@Override
public void drawBase(Tile tile){
super.drawBase(tile);
if(Mathf.randomSeed(tile.pos(), 10) < 2){
Draw.rect(clusters[0], tile.worldx(), tile.worldy(), Mathf.randomSeedRange(tile.pos() + 1, 180f));
}
}
}
@@ -100,7 +100,7 @@ public class ThermalGenerator extends PowerGenerator{
super.draw();
if(spinners){
Drawf.spinSprite(blurRegion.found() ? blurRegion : rotatorRegion, x, y, spinRotation);
Drawf.spinSprite(blurRegion.found() && enabled && productionEfficiency > 0 ? blurRegion : rotatorRegion, x, y, spinRotation);
}
}