import { GoodType } from "./good-type.enum";

export interface GoodConfig {
  baseProduction: number; // pro Sekunde
  baseDemand: number;     // pro Sekunde
  storageLimit: number;
  isRawResource: boolean;
  dependsOn?: GoodType[];
}

export const GOODS_DATA: Record<GoodType, GoodConfig> = {
  [GoodType.Wasser]:      { baseProduction: 1, baseDemand: 0.0012, storageLimit: 500, isRawResource: true },
  [GoodType.Nahrung]:     { baseProduction: 1, baseDemand: 0.001, storageLimit: 300, isRawResource: true },
  [GoodType.Erz]:         { baseProduction: 1.0, baseDemand: 0.0005,   storageLimit: 200, isRawResource: true },
  [GoodType.Metall]:      { baseProduction: 0.7,   baseDemand: 0.003, storageLimit: 300, isRawResource: false, dependsOn: [GoodType.Erz, GoodType.Wasser] },
  [GoodType.Treibstoff]:  { baseProduction: 0.5,   baseDemand: 0.002, storageLimit: 150, isRawResource: false, dependsOn: [GoodType.Wasser] },
  [GoodType.Elektronik]:  { baseProduction: 0.3,   baseDemand: 0.001, storageLimit: 100, isRawResource: false, dependsOn: [GoodType.Bauteile, GoodType.Treibstoff] },
  [GoodType.Bauteile]:    { baseProduction: 0.5,   baseDemand: 0.0015, storageLimit: 100, isRawResource: false, dependsOn: [GoodType.Metall] }
};