Skip to content

Commit

Permalink
Rotate unit with assemblers / Reduced impact drill water cost to 10/s
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 20, 2025
1 parent 34cc625 commit 6c42b30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/content/Blocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -2874,7 +2874,7 @@ public static void load(){
fogRadius = 4;

consumePower(160f / 60f);
consumeLiquid(Liquids.water, 0.2f);
consumeLiquid(Liquids.water, 10f/60f);
}};

eruptionDrill = new BurstDrill("eruption-drill"){{
Expand Down
6 changes: 3 additions & 3 deletions core/src/mindustry/world/blocks/units/UnitAssembler.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public void spawned(){
unit.command().commandPosition(commandPos);
}
unit.set(spawn.x + Mathf.range(0.001f), spawn.y + Mathf.range(0.001f));
unit.rotation = 90f;
unit.rotation = rotdeg();
unit.add();
}

Expand Down Expand Up @@ -507,7 +507,7 @@ public void draw(){
//margin due to units not taking up whole region
Shaders.blockbuild.progress = Mathf.clamp(progress + 0.05f);

Draw.rect(plan.unit.fullIcon, sx, sy);
Draw.rect(plan.unit.fullIcon, sx, sy, rotdeg() - 90f);
Draw.flush();
Draw.color();
});
Expand All @@ -519,7 +519,7 @@ public void draw(){
//draw unit silhouette
Draw.mixcol(Tmp.c1.set(Pal.accent).lerp(Pal.remove, invalidWarmup), 1f);
Draw.alpha(Math.min(powerWarmup, sameTypeWarmup));
Draw.rect(plan.unit.fullIcon, spawn.x, spawn.y);
Draw.rect(plan.unit.fullIcon, spawn.x, spawn.y, rotdeg() - 90f);

//build beams do not draw when invalid
Draw.alpha(Math.min(1f - invalidWarmup, warmup));
Expand Down

2 comments on commit 6c42b30

@SunkyMP3G
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't it already cheap?

@daddykidos
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was like 12 or 15 water kinda forgot but now we can get 3 impact drills from just one water condenser

Please sign in to comment.