class ItemSeeds

  def self.seed_stock_items
    bucket = 8
    pin = 9 * 4
    firkin = 9 * 8
    kilderkin = 18 * 8
    barrel = 36 * 8

    beer_freshness = 30 * 7 # About seven months

    items = [
      { code: "iron_lager",
        name: "Barrel of Iron Lager",
        flavor: "Week and fizzy with undertones of horse piss",
        category: "beer",
        days_fresh: beer_freshness,
        price: 520,
        servings: barrel },

      { code: "goblin_ale",
        name: "Barrel of Goblin Ale",
        flavor: "Imported from Tel'Adre",
        category: "beer",
        days_fresh: beer_freshness,
        price: 680,
        servings: barrel },

      { code: "zombie_juice",
        name: "Barrel of Zombie Juice",
        flavor: "Wait, what is this made of exactly?",
        category: "beer",
        days_fresh: beer_freshness,
        price: 710,
        servings: barrel },

      { code: "old_gregs",
        name: "Greg's Old Peculiar",
        flavor: "Tastes like the underside of a dock.",
        category: "beer",
        days_fresh: beer_freshness,
        price: 730,
        servings: barrel },

      { code: "minotaur_cum",
        name: "Bucket of Minotaur Cum",
        flavor: "It's exactly what's written on the bucket.",
        category: "drank",
        days_fresh: 14,
        price: 40,
        servings: bucket }
    ]

    StockItem.manufacture_each items
  end

end
