-- This information tells other players more about the mod
name = "挖矿机"
description = "能挖出岩石，各色宝石，黄金，月石。听说会出怪物？"
author = "MystPhysx & ZupaleX"
version = "0.5.160105"

forumthread = ""

api_version = 10

-- Can specify a custom icon for this mod!
icon_atlas = "modicon.xml"
icon = "modicon.tex"

dst_compatible = true
dont_starve_compatible = false
reign_of_giants_compatible = true

all_clients_require_mod = true
client_only_mod = false

--These tags allow the server running this mod to be found with filters from the server listing screen
server_filter_tags = {"machine", "mining"}

priority = 0.000036082015

configuration_options =
{
	{
		name = "MMStorageSize",
		label = "Storage Capacity",
		hover = "The Amount of slots for the Mining Machine Storage",
		options =
		{
			{description = "4 slots", data = "ui_mms_2x2"},
			{description = "6 slots", data = "ui_mms_2x3"},
			{description = "9 slots", data = "ui_mms_3x3"},
			{description = "12 slots", data = "ui_mms_4x3"},
			{description = "16 slots", data = "ui_mms_4x4"},		
		},
		default = "ui_mms_2x3",
	},	
	
	{
		name = "DIGSUCCESODDS",
		label = "Sucessful Digging",
		hover = "The probability to successfully dig items",
		options =
		{
			{description = "10%", data = 0.1},
			{description = "20%", data = 0.2},
			{description = "30%", data = 0.3},
			{description = "40%", data = 0.4},		
			{description = "50%", data = 0.5},	
			{description = "60%", data = 0.6},	
			{description = "70%", data = 0.7},	
			{description = "90%", data = 0.8},	
			{description = "90%", data = 0.9},	
			{description = "100%", data = 1},	
		},
		default = 0.7,
	},
	
	{
		name = "DIGPERIOD",
		label = "Digging Period",
		hover = "How many times per day the machine will try to dig something",
		options =
		{
			{description = "0.5", data = 0.5},
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "4", data = 4},		
			{description = "6", data = 6},	
			{description = "8", data = 8},	
			{description = "10", data = 10},	
			{description = "12", data = 12},	
			{description = "14", data = 14},	
			{description = "16", data = 16},	
			{description = "16", data = 32},	
		},
		default = 4,
	},
	
	{
		name = "JAMODDS",
		label = "Jamming Probability",
		hover = "The probability for the machine to jam if the digging failed",
		options =
		{
			{description = "10%", data = 0.1},
			{description = "20%", data = 0.2},
			{description = "30%", data = 0.3},
			{description = "40%", data = 0.4},		
			{description = "50%", data = 0.5},	
			{description = "60%", data = 0.6},	
			{description = "70%", data = 0.7},	
			{description = "90%", data = 0.8},	
			{description = "90%", data = 0.9},	
			{description = "100%", data = 1},	
		},
		default = 0.15,
	},
	
	{
		name = "WINTERSLOWDOWN",
		label = "Winter Slow Down",
		hover = "Reduce the speed of the machine during winter by 40%",
		options =
		{
			{description = "no", data = false},
			{description = "yes", data = true},
		},
		default = true,
	},
	
	{
		name = "SUMMERJAMINC",
		label = "Summer Jam Increase",
		hover = "Increase the probability for the machine to jam in summer by 2",
		options =
		{
			{description = "no", data = false},
			{description = "yes", data = true},
		},
		default = true,
	},
	
	{
		name = "KEEPREMAINS",
		label = "Keep remains",
		hover = "Remains on the machine will stay on the map upon destruction (like walls)",
		options =
		{
			{description = "no", data = false},
			{description = "yes", data = true},
		},
		default = true,
	},
	
	{
		name = "ChestMobOdds",
		label = "Mobs in Chest",
		hover = "The probability to \"dig\" a mob long with regular items",
		options =
		{
			{description = "Never", data = 0},
			{description = "1%", data = 0.01},
			{description = "2%", data = 0.02},
			{description = "5%", data = 0.05},
			{description = "10%", data = 0.10},		
			{description = "15%", data = 0.15},	
			{description = "20%", data = 0.20},	
			{description = "25%", data = 0.25},	
			{description = "30%", data = 0.30},	
			{description = "40%", data = 0.40},	
			{description = "50%", data = 0.50},	
		},
		default = 0.05,
	},
	
	{
		name = "EscapeMobOdds",
		label = "Surface Leak",
		hover = "The probability of cave monbs to spawn next to you Mining Machine",
		options =
		{
			{description = "Never", data = 0},
			{description = "1%", data = 0.01},
			{description = "2%", data = 0.02},
			{description = "5%", data = 0.05},
			{description = "10%", data = 0.10},		
			{description = "15%", data = 0.15},	
			{description = "20%", data = 0.20},	
			{description = "25%", data = 0.25},	
			{description = "30%", data = 0.30},	
			{description = "40%", data = 0.40},	
			{description = "50%", data = 0.50},			
		},
		default = 0.15,
	},
	
	{
		name = "MMKGEARSREQ",
		label = "Miner Recipe : Gears",
		hover = "Amount of Gears required to craft the Mining Machine Kit",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
			{description = "6", data = 6},
			{description = "7", data = 7},
			{description = "8", data = 8},
			{description = "9", data = 9},
			{description = "10", data = 10},			
		},
		default = 6,
	},
	
	{
		name = "MMKGOLDREQ",
		label = "Miner Recipe : Gold",
		hover = "Amount of Gold Nuggets required to craft the Mining Machine Kit",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
			{description = "6", data = 6},
			{description = "7", data = 7},
			{description = "8", data = 8},
			{description = "9", data = 9},
			{description = "10", data = 10},		
			{description = "11", data = 11},	
			{description = "12", data = 12},	
			{description = "13", data = 13},	
			{description = "14", data = 14},	
			{description = "15", data = 15},				
		},
		default = 8,
	},
	
	{
		name = "MMKBOARDSREQ",
		label = "Miner Recipe : Boards",
		hover = "Amount of Boards required to craft the Mining Machine Kit",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
			{description = "6", data = 6},
			{description = "7", data = 7},
			{description = "8", data = 8},
			{description = "9", data = 9},			
		},
		default = 5,
	},
	
	{
		name = "MMKDOODADSREQ",
		label = "Miner Recipe : Doodads",
		hover = "Amount of Electrical Doodads required to craft the Mining Machine Kit",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
			{description = "6", data = 6},
			{description = "7", data = 7},
			{description = "8", data = 8},
			{description = "9", data = 9},
			{description = "10", data = 10},			
		},
		default = 3,
	},

	{
		name = "MMKTECHLEVEL",
		label = "Miner Tech. Level",
		hover = "Machine required to craft the Mining Machine Kit",
		options =
		{
			{description = "None", data = "NONE"},
			{description = "Sc. Mach.", data = "SCIENCE_ONE"},
			{description = "Alch. Eng.", data = "SCIENCE_TWO"},
		},
		default = "SCIENCE_ONE",
	},	
	
	{
		name = "CWTWIGSREQ",
		label = "Wrench Recipe : Twigs",
		hover = "Amount of Twigs required to craft the Artisanal Wrench",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},	
		},
		default = 1,
	},
	
	{
		name = "CWTROCKSREQ",
		label = "Wrench Recipe : Rocks",
		hover = "Amount of Rocks required to craft the Artisanal Wrench",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},	
		},
		default = 2,
	},
	
	{
		name = "CWROPEREQ",
		label = "Wrench Recipe : Rope",
		hover = "Amount of Rope required to craft the Artisanal Wrench",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},	
		},
		default = 1,
	},
	
	{
		name = "IWIRONREQ",
		label = "Iron Wrench Recipe : Iron",
		hover = "Amount of Iron Ores required to craft the Iron Wrench",
		options =
		{
			{description = "1", data = 1},
			{description = "2", data = 2},
			{description = "3", data = 3},
			{description = "4", data = 4},
			{description = "5", data = 5},
			{description = "6", data = 6},
			{description = "7", data = 7},
			{description = "8", data = 8},
			{description = "9", data = 9},
			{description = "10", data = 10},			
		},
		default = 3,
	},
	
	{
		name = "IWDURABILITY",
		label = "Iron Wrench Durability",
		hover = "Amount of uses before the Iron Wrench breaks",
		options =
		{
			{description = "5", data = 5},
			{description = "10", data = 10},
			{description = "15", data = 15},
			{description = "20", data = 20},
			{description = "25", data = 25},
			{description = "30", data = 30},
			{description = "40", data = 40},
			{description = "50", data = 50},
			{description = "infinite", data = 999},			
		},
		default = 5,
	},	
}