From ad5d5eecd0bfd508a3472ad52f83d71a6784bf84 Mon Sep 17 00:00:00 2001 From: scamiv <6170744+scamiv@users.noreply.github.com> Date: Sat, 22 Nov 2025 20:27:22 +0100 Subject: [PATCH] tweaked profits --- src/core/configuration/DefaultConfig.ts | 4 ++-- src/core/game/Railroad.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 808ed67ba..41cd40bb8 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -370,8 +370,8 @@ export class DefaultConfig implements Config { } } trainGoldRefillTime(): Tick { - // Baseline: full refill in 60 ticks - return 60; + // Baseline: full refill in x ticks + return 600; } trainStationMinRange(): number { diff --git a/src/core/game/Railroad.ts b/src/core/game/Railroad.ts index 4d8118377..32d941f5d 100644 --- a/src/core/game/Railroad.ts +++ b/src/core/game/Railroad.ts @@ -3,7 +3,7 @@ import { TileRef } from "./GameMap"; import { GameUpdateType, RailTile, RailType } from "./GameUpdates"; import { TrainStation } from "./TrainStation"; -const CONGESTION_EMA_ALPHA = 0.02; +const CONGESTION_EMA_ALPHA = 0.05; export class Railroad { private trainCount: number = 0; @@ -75,7 +75,7 @@ export class Railroad { getFare(): bigint { const baseLengthFare = 10; - const baseCongestionFare = BigInt(1000); + const baseCongestionFare = BigInt(5000); const lengthFare = BigInt(this.getLength() * baseLengthFare); // Base fare proportional to length // Busy railroads should be more expensive: each train adds a congestion premium const effectiveCongestion = Math.max(0, Math.round(this.congestionEma));