tradeships give less gold

This commit is contained in:
Evan
2024-11-23 20:17:03 -08:00
parent 6b934a5929
commit 3b0e245e78
+2 -2
View File
@@ -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) {