zpizmak = zpizmak || {}
zpizmak.config = zpizmak.config || {}

---------------------------------------------------------------------------------

// Bought by 76561198299833933
// Version 1.0.5b

---------------------------------------------------------------------------------
-- Developed by ZeroChain:
-- http://steamcommunity.com/id/zerochain/
-- https://www.gmodstore.com/users/view/76561198013322242

-- If you wish to contact me:
-- clemensproduction@gmail.com

---------------------------------------------------------------------------------
--------------BEFORE YOU START BE SURE TO READ THE README.TXT--------------------
---------------------------------------------------------------------------------


// Misc
///////////////////////
// This enables fast download
zpizmak.config.EnableResourceAddfile = false

// What language do we want? en,de,fr,pl,pt
zpizmak.config.selectedLanguage = "en"

// What gamemode are we using
zpizmak.config.selectedGamemode = "DarkRP"
// DarkRP
// BaseWars

// These Ranks are allowed do use the save command  !savepizzamaker
zpizmak.config.allowedRanks = {
	"superadmin",
	"owner",
}

// The Currency
zpizmak.config.Currency = "$"

// This will turn the Health the Player receives when eating a Pizza to Energy for the HungerMod
zpizmak.config.UseHungermod = false

// Do we want the Health do stop at its max?
zpizmak.config.HealthCap = true

// This will remove the Owner checks so everyone can use the Players Equipment
zpizmak.config.EquipmentSharing = false
//*Note This needs do be true if you save the Equipment for the Map via !savezpizmak

// Here you can add all the Jobs that are allowed do interact with the Fridge, Oven and OpenSign
zpizmak.config.JobRestriction = {"Pizza Chef"}
//*Note Leave empty do disable the JobRestriction

// This will spawn the Money from the Open Sign as Entity instead of sending it direct too the Owner
zpizmak.config.RevenueSpawn = true
// Only works in DarkRP at the moment
///////////////////////


// Fridge Shop
///////////////////////
// This Sets up our Fridge Shop and also the available Ingredients for Pizza
zpizmak.config.Ingredients = {
	[1] = {
		Name = "Dough",
		Model = "models/zerochain/props_pizza/zpizmak_pizzadough.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_dough.png", "smooth"),
		Desc = "The Dough",
		Price = 15,
	},
	[2] = {
		Name = "TomatoSauce",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_tomato.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_tomato.png", "smooth"),
		Desc = "The Base Sauce",
		Price = 10,
		iColor = Color(200,0,0),
	},
	[3] = {
		Name = "Cheese",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_cheese.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_cheese.png", "smooth"),
		Desc = "Some smelly Cheese",
		Price = 15,
		iColor = Color(252,223,118),
	},
	[4] = {
		Name = "Spinat",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_spinat.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_spinat.png", "smooth"),
		Desc = "Could be spinach, idk",
		Price = 15,
		iColor = Color(139,164,60),
	},
	[5] = {
		Name = "Salami",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_salami.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_salami.png", "smooth"),
		Desc = "Lets say its Salami, mkay",
		Price = 75,
		iColor = Color(131,23,29),
	},
	[6] = {
		Name = "Olives",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_olives.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_olive.png", "smooth"),
		Desc = "Some fresh Olives!",
		Price = 10,
		iColor = Color(156,155,34),
	},
	[7] = {
		Name = "Eggplant",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_eggplant.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_eggplant.png", "smooth"),
		Desc = "Dont really looks like an Egg",
		Price = 80,
		iColor = Color(90,14,94),
	},
	[8] = {
		Name = "Chilli",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_chilli.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_chilli.png", "smooth"),
		Desc = "So Hot!",
		Price = 75,
		iColor = Color(255,57,57),
	},
	[9] = {
		Name = "Pickle",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_pickle.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_pickle.png", "smooth"),
		Desc = "Its a Pickle!",
		Price = 25,
		iColor = Color(25,31,19),
	},
	[10] = {
		Name = "Mushroom",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_mushroom.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_mushroom.png", "smooth"),
		Desc = "Dat Fungus",
		Price = 15,
		iColor = Color(249,220,178),
	},
	[11] = {
		Name = "Pineapple",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_pineapple.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_pineapple.png", "smooth"),
		Desc = "Gay",
		Price = 80,
		iColor = Color(238,175,74),
	},
	[12] = {
		Name = "Egg",
		Model = "models/props_phx/misc/egg.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_egg.png", "smooth"),
		Desc = "A Egg",
		Price = 50,
		iColor = Color(229,229,229),
	},
	[13] = {
		Name = "Bacon",
		Model = "models/zerochain/props_pizza/zpizmak_ingredient_bacon.mdl",
		Icon = Material("materials/zerochain/zpizmak/ui/icons/zpizmak_bacon.png", "smooth"),
		Desc = "Bacon! Bacon! Bacon!",
		Price = 75,
		iColor = Color(118,29,33),
	},
}

// The Limit each fridge can spawn in
zpizmak.config.Ingredient_Limit = 6

// How long until the ingredient despawn, -1 disables this function
zpizmak.config.Ingredient_Despawn = 60 //seconds
///////////////////////


// Pizza Recipes
///////////////////////
// All the Pizzas
zpizmak.config.Pizzas = {
	[1] = {
		Name = "Magarita",
		Recipe = {TomatoSauce = 1,Cheese = 1}, // The Ingredients needed.
		BakeTime = 10, // The Time in seconds the Pizza needs do be Baked
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl", // This can stay the same for every Pizza
		Desc = "A basic Pizza!",
		Price = 150, // This Value gets added to the Ingredients Cost
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_magarita.png", "smooth"), // How should the Pizza look when its done
		SpawnChance = 50, // How high is the Chance that this Pizza gets choosen by a Customer (1-100)
		ConsumHealth = 5, // How much Health gets the Player if he eats the Pizza
	},
	[2] = {
		Name = "Spinat Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Spinat = 2},
		BakeTime = 15,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "A really Green Pizza!",
		Price = 200,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_spinat.png", "smooth"),
		SpawnChance = 25,
		ConsumHealth = 15,
	},
	[3] = {
		Name = "Salami Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Salami = 2},
		BakeTime = 15,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "A Donkey Pizza!",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_salami.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[4] = {
		Name = "Olive Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Olives = 3},
		BakeTime = 20,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "A Italiano Pizza!",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_olivia.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[5] = {
		Name = "Grande Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Salami = 1,Olives = 1, Eggplant = 1,Spinat = 1,Pickle = 1},
		BakeTime = 120,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "A Big Pizza!",
		Price = 1000,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_grande.png", "smooth"),
		SpawnChance = 5,
		ConsumHealth = 60,
	},
	[6] = {
		Name = "Bacon Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Bacon = 2},
		BakeTime = 25,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "Bacon!",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_bacon.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[7] = {
		Name = "Egg Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Egg = 1,Chilli = 1,Bacon = 1},
		BakeTime = 25,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "Eggs and more Eggs.",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_egg.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[8] = {
		Name = "Mushroom Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 1,Spinat = 1,Chilli = 1,Mushroom = 1},
		BakeTime = 25,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "Dont gets you High.",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_mushroom.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[9] = {
		Name = "Hawai Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 2,Pineapple = 1},
		BakeTime = 30,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "Tropical Taste!",
		Price = 250,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_hawai.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 15,
	},
	[10] = {
		Name = "Cheese Pizza",
		Recipe = {TomatoSauce = 1,Cheese = 3},
		BakeTime = 30,
		Model = "models/zerochain/props_pizza/zpizmak_pizza.mdl",
		Desc = "A cheese Pizza!",
		Price = 200,
		PizzaTop = Material("materials/zerochain/zpizmak/ui/pizzas/pizza_cheese.png", "smooth"),
		SpawnChance = 10,
		ConsumHealth = 5,
	},
}
///////////////////////


// Pizza Oven
///////////////////////
// How much time till the Pizza got Burned
zpizmak.config.PizzaBurnTime = 15

///////////////////////


// Customers
///////////////////////
// Some Data for our customers
zpizmak.config.Customers = {

	[1] = {
		Model = "models/Humans/Group01/male_07.mdl", // The Customer Model
		SitAnim = {"silo_sit"}, // The Customer Sit Animations
		ServAnim = {"cheer1","cheer2"}, // The Customer gets Pizza Animations
	},
	[2] = {
		Model = "models/Humans/Group01/male_08.mdl",
		SitAnim = {"sitchair1","silo_sit"},
		ServAnim = {"cheer1","cheer2"},
	},
	[3] = {
		Model = "models/Humans/Group01/male_09.mdl",
		SitAnim = {"silo_sit"},
		ServAnim = {"cheer1","cheer2"},
	},
	[4] = {
		Model = "models/Humans/Group01/Female_01.mdl",
		SitAnim = {"sitchair1","silo_sit"},
		ServAnim = {"cheer1","heal"},
	},
	[5] = {
		Model = "models/Humans/Group01/Female_02.mdl",
		SitAnim = {"sitchair1","silo_sit"},
		ServAnim = {"cheer1","heal"},
	},
	[6] = {
		Model = "models/Humans/Group01/Female_03.mdl",
		SitAnim = {"sitchair1","silo_sit"},
		ServAnim = {"cheer1","heal"},
	},
	[7] = {
		Model = "models/Humans/Group01/Male_01.mdl",
		SitAnim = {"silo_sit"},
		ServAnim = {"cheer1","cheer2"},
	},
	[8] = {
		Model = "models/alyx.mdl",
		SitAnim = {"d1_t03_sit_bed"},
		ServAnim = {"cheer1","heal"},
	},
	[9] = {
		Model = "models/gman_high.mdl",
		SitAnim = {"silo_sit"},
		ServAnim = {"tiefidget","lintpick"},
	},
	[10] = {
		Model = "models/Kleiner.mdl",
		SitAnim = {"silo_sit"},
		ServAnim = {"heal"},
	},
}

// How much does the player gets payed if he delivers a burned pizza
zpizmak.config.Customer_BurnedPizzaPenalty = 0.2 //20%

// The Interval at which new customers get spawned
zpizmak.config.Customer_RespawnRate = 15

// How many Customers can one Player have at once
zpizmak.config.Customer_Limit = 3

// Time in seconds we add to the bake time of the pizza for the Customer do wait.
zpizmak.config.Customer_ExtraWaitTime = 100

///////////////////////
