tweaked profits

This commit is contained in:
scamiv
2025-11-22 20:27:22 +01:00
parent 3e69bbfc4f
commit ad5d5eecd0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 {
+2 -2
View File
@@ -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));