mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 06:22:07 +00:00
format code with prettier
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user