Rotation & repair sounds / Explosion sound rename

This commit is contained in:
Anuken
2025-12-10 11:55:00 -05:00
parent c5656278ad
commit dc4eada23f
29 changed files with 55 additions and 36 deletions

View File

@@ -87,6 +87,7 @@ public class Build{
tile.build.noSleep();
Fx.rotateBlock.at(tile.build.x, tile.build.y, tile.build.block.size);
Events.fire(new BuildRotateEvent(tile.build, unit, previous));
if(!headless) Sounds.blockRotate.at(tile.build, 1f + Mathf.range(0.1f), 1f);
return;
}
@@ -108,7 +109,7 @@ public class Build{
if(fogControl.isVisibleTile(team, tile.x, tile.y)){
result.placeEffect.at(tile.drawx(), tile.drawy(), result.size);
Fx.rotateBlock.at(tile.build.x, tile.build.y, tile.build.block.size);
//doesn't play a sound
ConstructBlock.playRepairSound(team, tile);
}
Events.fire(new BlockBuildEndEvent(tile, unit, team, false, tile.build.config()));