Rotate unit with assemblers / Reduced impact drill water cost to 10/s

This commit is contained in:
Anuken
2025-01-19 23:06:27 -05:00
parent 34cc625e33
commit 6c42b30309
2 changed files with 4 additions and 4 deletions

View File

@@ -2874,7 +2874,7 @@ public class Blocks{
fogRadius = 4;
consumePower(160f / 60f);
consumeLiquid(Liquids.water, 0.2f);
consumeLiquid(Liquids.water, 10f/60f);
}};
eruptionDrill = new BurstDrill("eruption-drill"){{

View File

@@ -452,7 +452,7 @@ public class UnitAssembler extends PayloadBlock{
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();
}
@@ -507,7 +507,7 @@ public class UnitAssembler extends PayloadBlock{
//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();
});
@@ -519,7 +519,7 @@ public class UnitAssembler extends PayloadBlock{
//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));