-- This information tells other players more about the mod
name = "采矿机 [DST]"
description = "可挖掘出石头、燧石、黄金、宝石等等\n还有会挖出洞穴小怪\n机械翻译可能部分汉化错误"
author = "MystPhysx & ZupaleX"
version = "0.5.150920"

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 = "矿机存储容量",
		hover = "挖矿机的存储容量",
		options =
		{
			{description = "4格", data = "ui_mms_2x2"},
			{description = "6格", data = "ui_mms_2x3"},
			{description = "9格", data = "ui_mms_3x3"},
			{description = "12格", data = "ui_mms_4x3"},
			{description = "16格", data = "ui_mms_4x4"},		
		},
		default = "ui_mms_2x3",
	},	
	
	{
		name = "DIGSUCCESODDS",
		label = "挖掘概率",
		hover = "挖掘成功概率",
		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 = "挖掘频率",
		hover = "一天能挖多少次",
		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 = "堵塞概率",
		hover = "如果机器挖掘失败概率堵塞",
		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 = "冬季挖矿减慢",
		hover = "挖矿机冬季挖矿速度减慢40%",
		options =
		{
			{description = "否", data = false},
			{description = "是", data = true},
		},
		default = true,
	},
	
	{
		name = "SUMMERJAMINC",
		label = "增加夏季堵塞概率",
		hover = "增加了夏季的堵塞概率",
		options =
		{
			{description = "否", data = false},
			{description = "是", data = true},
		},
		default = true,
	},
	
	{
		name = "KEEPREMAINS",
		label = "保持残骸",
		hover = "挖矿机被破坏了是否保持残骸。",
		options =
		{
			{description = "否", data = false},
			{description = "是", data = true},
		},
		default = true,
	},
	
	{
		name = "ChestMobOdds",
		label = "小怪概率",
		hover = "挖出小怪的概率",
		options =
		{
			{description = "否", 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 = "挖矿机合成：齿轮",
		hover = "挖矿机合成消耗多少齿轮",
		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 = "挖矿机合成：黄金",
		hover = "挖矿机合成消耗多少黄金",
		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 = "挖矿机合成：木板",
		hover = "挖矿机合成消耗多少木板",
		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 = "挖矿机合成：电器元件",
		hover = "挖矿机合成消耗多少电器元件",
		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 = "科学要求",
		hover = "挖矿机合成科学所需要求",
		options =
		{
			{description = "无", data = "NONE"},
			{description = "科学机器", data = "SCIENCE_ONE"},
			{description = "炼金术引擎", data = "SCIENCE_TWO"},
		},
		default = "SCIENCE_ONE",
	},	
	
	{
		name = "CWTWIGSREQ",
		label = "扳手合成：小树枝",
		hover = "扳手合成消耗多少小树枝",
		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 = "扳手合成：岩石",
		hover = "扳手合成消耗多少岩石",
		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 = "扳手合成：绳索",
		hover = "扳手合成需要消耗多少绳索",
		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 = "铁扳手合成：铁矿",
		hover = "铁扳手合成消耗多少铁矿",
		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 = "铁扳手耐久度",
		hover = "铁扳手可用使用多少次",
		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,
	},	
}