Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -244,7 +244,7 @@ public class MenuRenderer implements Disposable{
|
||||
float size = Math.max(icon.width, icon.height) * Draw.scl * 1.6f;
|
||||
|
||||
flyers((x, y) -> {
|
||||
Draw.rect(flyerType.region, x - 12f, y - 13f, flyerRot - 90);
|
||||
Draw.rect(icon, x - 12f, y - 13f, flyerRot - 90);
|
||||
});
|
||||
|
||||
flyers((x, y) -> {
|
||||
@@ -264,7 +264,7 @@ public class MenuRenderer implements Disposable{
|
||||
(engineSize + Mathf.absin(Time.time(), 2f, engineSize / 4f)) / 2f);
|
||||
Draw.color();
|
||||
|
||||
Draw.rect(flyerType.region, x, y, flyerRot - 90);
|
||||
Draw.rect(icon, x, y, flyerRot - 90);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ public class LiquidTurret extends Turret{
|
||||
public ObjectMap<Liquid, BulletType> ammoTypes = new ObjectMap<>();
|
||||
public @Load("@-liquid") TextureRegion liquidRegion;
|
||||
public @Load("@-top") TextureRegion topRegion;
|
||||
public boolean extinguish = true;
|
||||
|
||||
public LiquidTurret(String name){
|
||||
super(name);
|
||||
@@ -86,7 +87,7 @@ public class LiquidTurret extends Turret{
|
||||
|
||||
@Override
|
||||
protected void findTarget(){
|
||||
if(liquids.current().canExtinguish()){
|
||||
if(extinguish && liquids.current().canExtinguish()){
|
||||
int tr = (int)(range / tilesize);
|
||||
for(int x = -tr; x <= tr; x++){
|
||||
for(int y = -tr; y <= tr; y++){
|
||||
|
||||
Reference in New Issue
Block a user