Merge branch 'main' into canbuildtransport-perf

This commit is contained in:
VariableVince
2025-11-29 11:12:46 +01:00
committed by GitHub
288 changed files with 9409 additions and 3662 deletions
-16
View File
@@ -89,22 +89,6 @@ describe("PlayerImpl", () => {
expect(cityToUpgrade).toBe(false);
});
test("Destination ports chances scale with level", () => {
game.config().proximityBonusPortsNb = () => 0;
player.conquer(game.ref(10, 10));
const playerPort = player.buildUnit(UnitType.Port, game.ref(10, 10), {});
other.conquer(game.ref(0, 0));
const otherPort = other.buildUnit(UnitType.Port, game.ref(0, 0), {});
otherPort.increaseLevel();
otherPort.increaseLevel();
const ports = player.tradingPorts(playerPort);
expect(ports.length).toBe(3);
});
test("Can't send alliance requests when dead", () => {
// conquer other
const otherTiles = other.tiles();