mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 19:46:43 +00:00
fix config compile error
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -295,5 +295,3 @@ export abstract class DefaultConfig implements Config {
|
||||
return adjustment
|
||||
}
|
||||
}
|
||||
|
||||
export const defaultConfig = new DefaultConfig()
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import { DefaultConfig } from "./DefaultConfig";
|
||||
|
||||
export const preprodConfig = new class extends DefaultConfig {
|
||||
discordBotSecret(): string {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,8 @@
|
||||
import { DefaultConfig } from "./DefaultConfig";
|
||||
|
||||
export const prodConfig = new class extends DefaultConfig {
|
||||
discordBotSecret(): string {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user