> For the complete documentation index, see [llms.txt](https://dragon-heart-studios.gitbook.io/dragonheartstudios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-brewsandwines/configuration/wine-config.md).

# Wine Config

```lua
WineConfig = {}

WineConfig.DefaultBarrelSettings = {  -- The default settings for the barrels
    empty_wine_barrel = {
        model = "prop_wooden_barrel",
    },
    empty_wine_aging_barrel = {
        model = "prop_wooden_barrel",
    }
}

WineConfig.GrapePickingPoints = {
    vector3(-1873.59, 2100.24, 138.77),
    vector3(-1878.37, 2100.47, 138.89),
    vector3(-1882.11, 2100.52, 139.0),
    vector3(-1886.72, 2100.5, 139.01),
    vector3(-1884.5, 2100.69, 138.83),
    vector3(-1871.85, 2104.4, 137.45),
    vector3(-1874.55, 2104.8, 137.49),
    vector3(-1880.64, 2105.08, 137.71),
    vector3(-1883.75, 2105.34, 137.26),
    vector3(-1862.63, 2097.99, 138.31),
    vector3(-1858.20, 2100.04, 137.99),
    vector3(-1854.27, 2101.81, 137.84),
    vector3(-1851.19, 2103.26, 137.71),
    vector3(-1848.36, 2104.62, 137.68),
    vector3(-1843.76, 2106.87, 137.38),
    vector3(-1839.44, 2108.93, 136.89),
    vector3(-1834.89, 2110.86, 136.16),
    vector3(-1831.06, 2112.81, 135.17),
}

WineConfig.GrapesPerPickMin = 5
WineConfig.GrapesPerPickMax = 10

WineConfig.MinRequirements = {
    ["white_wine"] = {
        ["red_grapes"] = 1,
        ["yeast"] = 1,
    },
    ["red_wine"] = {
        ["red_grapes"] = 1,
        ["yeast"] = 1,
    },
    ["rose_wine"] = {
        ["red_grapes"] = 1,
        ["white_grapes"] = 1,
        ["yeast"] = 1,
    },
}

WineConfig.BrewingBlacklist = {  -- The items that cannot be used to brew wine
    'yeast',
    'red_grapes',
    'white_grapes',
    'money',
    'phone',
    'empty_jar',
    'WEAPON_BAT',
    'smoker',
    'pack_of_cigarettes',
    "empty_bottle",
}

-- BEFORE MESSING WITH THIS, ABSOLUTELY READ THE DOCUMENTATION!!!!
WineConfig.BrewingEffects = {
    BaseIngredients = {
        white_grapes = {
            ratios = {
                {min = 1, max = 2, effects = {type = "dry", healing = -10, stamina_regen = 15, sweetness = "low"}},
                {min = 3, max = 4, effects = {type = "standard", healing = 0, stamina_regen = 0, sweetness = "medium"}},
                {min = 5, max = 10, effects = {type = "sweet", healing = 10, speed_boost = 10, stamina_regen = -5, sweetness = "high"}}
            }
        },
        red_grapes = {
            ratios = {
                {min = 1, max = 2, effects = {type = "dry", healing = -10, stamina_regen = 15, sweetness = "low"}},
                {min = 3, max = 4, effects = {type = "standard", healing = 0, stamina_regen = 0, sweetness = "medium"}},
                {min = 5, max = 10, effects = {type = "sweet", healing = 10, speed_boost = 10, stamina_regen = -5, sweetness = "high"}}
            }
        },
        yeast = {
            ratios = {
                {min = 1, max = 2, effects = {alcohol = "low", duration_multiplier = 1.5, intensity_multiplier = 0.7}},
                {min = 3, max = 4, effects = {alcohol = "medium", duration_multiplier = 1.0, intensity_multiplier = 1.0}},
                {min = 5, max = 10, effects = {alcohol = "high", duration_multiplier = 0.7, intensity_multiplier = 1.3, side_effects = {"dizzy"}}}
            }
        },
    },
    OptionalIngredients = {
        honey_comb = {
            category = "beneficial",
            effects = { healing = 25, quality_bonus = 1},
        },
        sprunk = {
            category = "flavor",
            effects = {sell_price_multiplier = 1.2, quality_bonus = 0.5},
        },
        glass = {
            category = "dangerous",
            effects = {poison_damage = 10, hallucination = true, duration = 180},
        },
    },
    SpecialWhiteWineRecipes = {
        healing_white_grape_goodness = {
            name = "Healing White Grapey",
            required = {white_grapes = 3, yeast = 2},
            optional = {"sprunk"},
            effects = {
                healing = 75,
                health_regen = 2,
                duration = 450
            },
            quality_bonus = 2,
            rarity = "uncommon"
        },
        poison_white_grape_goodness = {
            name = "Poison White Grapey",
            required = {white_grapes = 1, yeast = 1},
            optional = {"glass"},
            optional_count = 1,
            effects = {
                poison_damage = 15,
                duration = 900
            },
            rarity = "rare",
        }
    },
    SpecialRedWineRecipes = {
        healing_red_grape_goodness = {
            name = "Healing Red Grapey",
            required = {red_grapes = 2, yeast = 2},
            optional = {"sprunk"},
            effects = {
                healing = 75,
                health_regen = 2,
                duration = 450
            },
            quality_bonus = 2,
            rarity = "uncommon"
        },
        poison_red_grape_goodness = {
            name = "Poison Red Grapey",
            required = {red_grapes = 1, yeast = 1},
            optional = {"glass"},
            optional_count = 1,
            effects = {
                poison_damage = 15,
                duration = 900
            },
            rarity = "rare",
        }
    },
    SpecialRoseWineRecipes = {
        healing_rose_grape_goodness = {
            name = "Healing Rose Grapey",
            required = {white_grapes = 3, red_grapes = 3, yeast = 2},
            optional = {"sprunk"},
            effects = {
                healing = 75,
                health_regen = 2,
                duration = 450
            },
            quality_bonus = 2,
            rarity = "uncommon"
        },
        poison_rose_grape_goodness = {
            name = "Poison Rose Grapey",
            required = {white_grapes = 1, red_grapes = 1, yeast = 1},
            optional = {"glass"},
            optional_count = 1,
            effects = {
                poison_damage = 15,
                duration = 900
            },
            rarity = "rare",
        }
    },
    Quality = {
        thresholds = {
            poor = 0,
            normal = 25,
            good = 50,
            excellent = 75,
            legendary = 95
        },
        base_score = 25
    },
    Effects = {
        base_duration = 300, -- 5 minutes
        max_duration = 1800, -- 30 minutes
        min_duration = 60    -- 1 minute
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://dragon-heart-studios.gitbook.io/dragonheartstudios/scripts/dhs-brewsandwines/configuration/wine-config.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
