Bugfixes
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 513 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 823 KiB |
@@ -731,7 +731,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
rotaryPump = new Pump("rotary-pump"){{
|
||||
requirements(Category.liquid, ItemStack.with(Items.copper, 140, Items.lead, 100, Items.silicon, 40, Items.titanium, 70));
|
||||
pumpAmount = 0.2f;
|
||||
pumpAmount = 0.8f;
|
||||
consumes.power(1.50f);
|
||||
liquidCapacity = 30f;
|
||||
hasPower = true;
|
||||
@@ -740,7 +740,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
thermalPump = new Pump("thermal-pump"){{
|
||||
requirements(Category.liquid, ItemStack.with(Items.copper, 160, Items.lead, 130, Items.silicon, 60, Items.titanium, 80, Items.thorium, 70));
|
||||
pumpAmount = 0.22f;
|
||||
pumpAmount = 1.95f;
|
||||
consumes.power(0.30f);
|
||||
liquidCapacity = 40f;
|
||||
hasPower = true;
|
||||
|
||||
@@ -359,6 +359,7 @@ public class Bullets implements ContentList{
|
||||
float healPercent = 3f;
|
||||
|
||||
{
|
||||
shootEffect = Fx.shootHeal;
|
||||
hitEffect = Fx.hitLaser;
|
||||
despawnEffect = Fx.hitLaser;
|
||||
collidesTeam = true;
|
||||
|
||||
@@ -35,6 +35,10 @@ public class RubbleDecal extends Decal{
|
||||
|
||||
@Override
|
||||
public void drawDecal(){
|
||||
if(!Core.atlas.isFound(region)){
|
||||
remove();
|
||||
return;
|
||||
}
|
||||
Draw.rect(region, x, y, Mathf.randomSeed(id, 0, 4) * 90);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
public class BlockRenderer{
|
||||
private final static int initialRequests = 32 * 32;
|
||||
private final static int expandr = 6;
|
||||
private final static int expandr = 9;
|
||||
private final static boolean disableShadows = false;
|
||||
private final static Color shadowColor = new Color(0, 0, 0, 0.19f);
|
||||
|
||||
|
||||
@@ -467,6 +467,6 @@ public class HudFragment extends Fragment{
|
||||
}
|
||||
}).growY().fillX().right().width(40f)
|
||||
.visible(() -> state.rules.waves && ((Net.server() || players[0].isAdmin) || !Net.active()) && state.enemies() == 0
|
||||
&& state.wavetime < state.rules.waveSpacing - 60);
|
||||
&& (state.wavetime < state.rules.waveSpacing - 60 || !state.rules.waveTimer));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ public class Pump extends LiquidBlock{
|
||||
|
||||
protected final int timerContentCheck = timers++;
|
||||
|
||||
/**Pump amount per tile this block is on.*/
|
||||
/**Pump amount, total.*/
|
||||
protected float pumpAmount = 1f;
|
||||
|
||||
public Pump(String name){
|
||||
@@ -40,7 +40,7 @@ public class Pump extends LiquidBlock{
|
||||
@Override
|
||||
public void setStats(){
|
||||
super.setStats();
|
||||
stats.add(BlockStat.liquidOutputSpeed, 60f * pumpAmount * size * size, StatUnit.liquidSecond);
|
||||
stats.add(BlockStat.liquidOutputSpeed, 60f * pumpAmount, StatUnit.liquidSecond);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -93,7 +93,7 @@ public class Pump extends LiquidBlock{
|
||||
}
|
||||
|
||||
if(tile.entity.cons.valid() && liquidDrop != null){
|
||||
float maxPump = Math.min(liquidCapacity - tile.entity.liquids.total(), tiles * pumpAmount * tile.entity.delta());
|
||||
float maxPump = Math.min(liquidCapacity - tile.entity.liquids.total(), tiles * pumpAmount * tile.entity.delta() / size / size);
|
||||
if(hasPower){
|
||||
maxPump *= tile.entity.power.satisfaction; // Produce slower if not at full power
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.awt.image.BufferedImage
|
||||
|
||||
def outFolder = "../core/assets-raw/sprites_out/"
|
||||
def genFolder = "../core/assets-raw/sprites_out/generated/"
|
||||
def doAntialias = true
|
||||
def doAntialias = !project.hasProperty("disableAntialias")
|
||||
|
||||
def antialias = {File file ->
|
||||
if(!doAntialias || file.lastModified() <= 1000) return
|
||||
|
||||
@@ -147,10 +147,10 @@ public class Generators {
|
||||
image.drawCenter(mech.region);
|
||||
}
|
||||
|
||||
int off = (image.width() - mech.weapon.region.getWidth())/2;
|
||||
int off = image.width()/2 - mech.weapon.region.getWidth()/2;
|
||||
|
||||
image.draw(mech.weapon.region, -(int)mech.weaponOffsetX + off, (int)mech.weaponOffsetY + off, false, false);
|
||||
image.draw(mech.weapon.region, (int)mech.weaponOffsetX + off, (int)mech.weaponOffsetY + off, true, false);
|
||||
image.draw(mech.weapon.region, -(int)mech.weaponOffsetX + off, (int)mech.weaponOffsetY + off + 4, false, false);
|
||||
image.draw(mech.weapon.region, (int)mech.weaponOffsetX + off, (int)mech.weaponOffsetY + off + 4, true, false);
|
||||
|
||||
|
||||
image.save("mech-icon-" + mech.name);
|
||||
|
||||
@@ -101,21 +101,11 @@ class Image {
|
||||
|
||||
int ofx = 0, ofy = 0;
|
||||
|
||||
if(x < 0){
|
||||
ofx = x;
|
||||
x = 0;
|
||||
}
|
||||
|
||||
if(y < 0){
|
||||
ofy = y;
|
||||
y = 0;
|
||||
}
|
||||
|
||||
graphics.drawImage(ImagePacker.get(region).image,
|
||||
x, y,
|
||||
x + region.getWidth(),
|
||||
y + region.getHeight(),
|
||||
(flipx ? region.getWidth() : 0) + ofx,
|
||||
(flipx ? region.getWidth() : 0) + ofx,
|
||||
(flipy ? region.getHeight() : 0) + ofy,
|
||||
(flipx ? 0 : region.getWidth()) + ofx,
|
||||
(flipy ? 0 : region.getHeight()) + ofy,
|
||||
|
||||
Reference in New Issue
Block a user