This commit is contained in:
Anuken
2020-12-21 20:48:00 -05:00
parent 806cea4b33
commit 852013cd63
4 changed files with 38 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 612 B

View File

@@ -876,7 +876,7 @@ public class Blocks implements ContentList{
size = 4;
}};
thruster = new Wall("thruster"){{
thruster = new Thruster("thruster"){{
health = 55 * 16 * wallHealthMultiplier;
size = 4;
}};

View File

@@ -0,0 +1,37 @@
package mindustry.world.blocks.defense;
import arc.graphics.g2d.*;
import arc.util.*;
import mindustry.annotations.Annotations.*;
import mindustry.entities.units.*;
public class Thruster extends Wall{
public @Load("@-top") TextureRegion topRegion;
public Thruster(String name){
super(name);
rotate = true;
quickRotate = false;
}
@Override
public void drawRequestRegion(BuildPlan req, Eachable<BuildPlan> list){
Draw.rect(region, req.drawx(), req.drawy());
Draw.rect(topRegion, req.drawx(), req.drawy(), req.rotation * 90);
}
@Override
public TextureRegion[] icons(){
return new TextureRegion[]{region, topRegion};
}
public class ThrusterBuild extends WallBuild{
@Override
public void draw(){
super.draw();
Draw.rect(topRegion, x, y, rotdeg());
}
}
}