Skip to content

Commit

Permalink
Fixed shields not working / Fixed player text not fading
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed May 5, 2019
1 parent a3f5583 commit 13969bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/io/anuke/mindustry/content/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ public TextureRegion[] variantRegions(){
requirements(Category.effect, ItemStack.with(Items.lead, 200, Items.titanium, 150, Items.silicon, 250));
size = 3;
consumes.item(Items.phasefabric).boost();
consumes.power(3f);
}};

shockMine = new ShockMine("shock-mine"){{
Expand Down Expand Up @@ -1539,7 +1540,7 @@ public TextureRegion[] variantRegions(){
reload = 50f;
firingMoveFract = 0.5f;
shootDuration = 220f;
powerUse = 8f;
powerUse = 10f;

health = 200 * size * size;
consumes.add(new ConsumeLiquidFilter(liquid -> liquid.temperature <= 0.5f && liquid.flammability < 0.1f, 0.5f)).update(false);
Expand Down
1 change: 1 addition & 0 deletions core/src/io/anuke/mindustry/entities/type/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ public void drawBuildRequests(){
@Override
public void update(){
hitTime -= Time.delta();
textFadeTime -= Time.delta() / (60 * 5);

if(Float.isNaN(x) || Float.isNaN(y)){
velocity.set(0f, 0f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public void update(Tile tile){
}
}else{
entity.warmup = Mathf.lerpDelta(entity.warmup, 1f, 0.1f);
entity.power.satisfaction -= Math.min(entity.power.satisfaction, relativePowerDraw * Time.delta());
}

if(entity.buildup > 0){
Expand Down

0 comments on commit 13969bd

Please sign in to comment.