fix config compile error

This commit is contained in:
evanpelle
2024-12-16 13:59:10 -08:00
parent 2b3c24c398
commit aff674ebaf
5 changed files with 9 additions and 3 deletions
-1
View File
@@ -1,7 +1,6 @@
import { Difficulty, GameType, Gold, Player, PlayerID, PlayerInfo, TerraNullius, Tick, Tile, Unit, UnitInfo, UnitType } from "../game/Game";
import { Colord, colord } from "colord";
import { devConfig } from "./DevConfig";
import { defaultConfig } from "./DefaultConfig";
import { GameID } from "../Schemas";
import { preprodConfig } from "./PreprodConfig";
import { prodConfig } from "./ProdConfig";
-2
View File
@@ -295,5 +295,3 @@ export abstract class DefaultConfig implements Config {
return adjustment
}
}
export const defaultConfig = new DefaultConfig()
+3
View File
@@ -2,6 +2,9 @@ import { GameType, Player, PlayerInfo, UnitInfo, UnitType } from "../game/Game";
import { DefaultConfig } from "./DefaultConfig";
export const devConfig = new class extends DefaultConfig {
discordBotSecret(): string {
throw new Error("Method not implemented.");
}
unitInfo(type: UnitType): UnitInfo {
const info = super.unitInfo(type)
const oldCost = info.cost
+3
View File
@@ -1,5 +1,8 @@
import { DefaultConfig } from "./DefaultConfig";
export const preprodConfig = new class extends DefaultConfig {
discordBotSecret(): string {
throw new Error("Method not implemented.");
}
}
+3
View File
@@ -1,5 +1,8 @@
import { DefaultConfig } from "./DefaultConfig";
export const prodConfig = new class extends DefaultConfig {
discordBotSecret(): string {
throw new Error("Method not implemented.");
}
}