format code with prettier

This commit is contained in:
evanpelle
2025-06-10 16:10:48 -07:00
parent 55206ca41f
commit 936df2b171
10 changed files with 10 additions and 45 deletions
+4 -8
View File
@@ -21,13 +21,7 @@ let attackerSpawn: TileRef;
function sendBoat(target: TileRef, source: TileRef, troops: number) {
game.addExecution(
new TransportShipExecution(
defender,
null,
target,
troops,
source,
),
new TransportShipExecution(defender, null, target, troops, source),
);
}
@@ -70,7 +64,9 @@ describe("Attack", () => {
attacker = game.player(attackerInfo.id);
defender = game.player(defenderInfo.id);
game.addExecution(new AttackExecution(100, defender, game.terraNullius().id()));
game.addExecution(
new AttackExecution(100, defender, game.terraNullius().id()),
);
game.executeNextTick();
while (defender.outgoingAttacks().length > 0) {
game.executeNextTick();