import type { DayConfig, IngredientId, Recipe } from './types';

export const ING: Record<IngredientId, { emoji: string; label: string }> = {
  batter: { emoji: '🥣', label: 'Batter' },
  butter: { emoji: '🧈', label: 'Butter' },
  egg: { emoji: '🥚', label: 'Egg' },
  bacon: { emoji: '🥓', label: 'Bacon' },
  bun: { emoji: '🍞', label: 'Bun' },
  patty: { emoji: '🥩', label: 'Patty' },
  cheese: { emoji: '🧀', label: 'Cheese' },
  pie: { emoji: '🥧', label: 'Pie' },
  coffee: { emoji: '☕', label: 'Coffee' },
  tomato: { emoji: '🍅', label: 'Tomato' },
  pickle: { emoji: '🥒', label: 'Pickle' },
};

export const RECIPES: Recipe[] = [
  {
    id: 'pancakes',
    name: 'Short Stack',
    dishAsset: 'dish_pancakes',
    emoji: '🥞',
    ingredients: ['batter', 'butter'],
    coins: 12,
  },
  {
    id: 'eggs',
    name: 'Sunny Plate',
    dishAsset: 'dish_eggs',
    emoji: '🍳',
    ingredients: ['egg', 'bacon'],
    coins: 14,
  },
  {
    id: 'burger',
    name: 'Big Sky Burger',
    dishAsset: 'dish_burger',
    emoji: '🍔',
    ingredients: ['bun', 'patty', 'cheese'],
    coins: 18,
  },
  {
    id: 'pie',
    name: 'Pie & Coffee',
    dishAsset: 'dish_pie',
    emoji: '🥧',
    ingredients: ['pie', 'coffee'],
    coins: 12,
  },
];

export const DAYS: DayConfig[] = [
  { target: 50, spawnMin: 6, spawnMax: 9, patience: 26, recipes: [0, 1], cookSpeed: 0.9 },
  { target: 85, spawnMin: 4.5, spawnMax: 7, patience: 22, recipes: [0, 1, 2], cookSpeed: 1.05 },
  { target: 120, spawnMin: 3.5, spawnMax: 5.5, patience: 19, recipes: [0, 1, 2, 3], cookSpeed: 1.2 },
];

export const DAY_LENGTH = 90;
export const TIP_BONUS = 3;
export const TIP_THRESHOLD = 0.6;
