From 3b0e245e78c6330dffc23fbf035c1da5acd187be Mon Sep 17 00:00:00 2001 From: Evan Date: Sat, 23 Nov 2024 20:17:03 -0800 Subject: [PATCH] tradeships give less gold --- src/core/configuration/DefaultConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 8ba31f151..acfcb8060 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -1,6 +1,6 @@ import { Gold, Player, PlayerInfo, PlayerType, TerrainType, TerraNullius, Tick, Tile, Unit, UnitInfo, UnitType } from "../game/Game"; import { GameID } from "../Schemas"; -import { assertNever, manhattanDist, simpleHash, within } from "../Util"; +import { assertNever, distSort, manhattanDist, simpleHash, within } from "../Util"; import { Config, Theme } from "./Config"; import { pastelTheme } from "./PastelTheme"; @@ -12,7 +12,7 @@ export class DefaultConfig implements Config { } tradeShipGold(src: Unit, dst: Unit): Gold { const dist = manhattanDist(src.tile().cell(), dst.tile().cell()) - return 10000 + (dist * dist) + return 10000 + 50 * dist } unitInfo(type: UnitType): UnitInfo { switch (type) {