--[[
BY
 _____   _____   __   _  
|  _  \ /  _  \ |  \ | | 
| | | | | | | | |   \| | 
| | | | | | | | | |\   | 
| |_| | | |_| | | | \  | 
|_____/ \_____/ |_|  \_| 

]]

--Infos. gerais:
name = "Candy Machine"
description = "Add a candy machine and a coin to use on it. \nIn the candy machine, you have the chance to win something good or bad. \n(Trick or Treat)"
author = "Gui (Don)"
version = "0.4.2"
icon_atlas = "modicon.xml"
icon = "modicon.tex"
forumthread = ""
api_version = 10
server_filter_tags = {"donmodcandymachine", "donmods", "iten", "item", "mod", "mods"}

dont_starve_compatible = true
reign_of_giants_compatible = true
shipwrecked_compatible = false
dst_compatible = true

client_only_mod = false
all_clients_require_mod = true



configuration_options =
{
	{
        name = "set_preco_coin",
        label = "Value of the coin",
		hover = "Defines the value of the coin...",
        options = 
        {
			{description = "1 Gold Nugget", data = "1goldrock"},
            {description = "2 Gold Nugget", data = "2goldrock"},        
            {description = "1 Rock", data = "1rock"},
            {description = "2 Rock", data = "2rock"},		
            {description = "1 Flint", data = "1flint"},
            {description = "2 Flint", data = "2flint"},
        }, 
        default = "2goldrock",
    },
	
	{
        name = "inifite_use_candy_machine",
        label = "Candy Machine - Infinite Use",
		hover = "Lets the candy machine with infinite use...",
        options = 
        {
            {description = "Yes", data = "y"},
            {description = "No", data = "n"},
        }, 
        default = "n",
    },
	
	{
        name = "wonderful_candys",
        label = "Candys (+Food/+Sanity)",
		hover = "Eating sweets give more food and sanity...",
        options = 
        {
            {description = "Yes", data = "y"},
            {description = "No", data = "n"},
        }, 
        default = "y",
    },
	
	{
        name = "usedubloonincandymachine",
        label = "Use DUBLOON",
		hover = "Use DUBLOON in candy machine...",
        options = 
        {
            {description = "Yes", data = "y"},
            {description = "No", data = "n"},
        }, 
        default = "n",
    },
}	