-- This information tells other players more about the mod
name = "Character YuYi"
description = "version:1.3.2"
author = "yiyu"
version = "1.3.2" -- This is the version of the template. Change it to your own number.

forumthread = ""
api_version = 6

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

icon_atlas = "modicon.xml"
icon = "modicon.tex"

local op = {
            {description="TAB", data = 9},
            {description="KP_PERIOD", data = 266},
            {description="KP_DIVIDE", data = 267},
            {description="KP_MULTIPLY", data = 268},
            {description="KP_MINUS", data = 269},
            {description="KP_PLUS", data = 270},
            {description="KP_ENTER", data = 271},
            {description="KP_EQUALS", data = 272},
            {description="MINUS", data = 45},
            {description="EQUALS", data = 61},
            {description="SPACE", data = 32},
            {description="ENTER", data = 13},
            {description="ESCAPE", data = 27},
            {description="HOME", data = 278},
            {description="INSERT", data = 277},
            {description="DELETE", data = 127},
            {description="END", data   = 279},
            {description="PAUSE", data = 19},
            {description="PRINT", data = 316},
            {description="CAPSLOCK", data = 301},
            {description="SCROLLOCK", data = 302},
            {description="RSHIFT", data = 303}, -- use SHIFT instead
            {description="LSHIFT", data = 304}, -- use SHIFT instead
            {description="RCTRL", data = 305}, -- use CTRL instead
            {description="LCTRL", data = 306}, -- use CTRL instead
            {description="RALT", data = 307}, -- use ALT instead
            {description="LALT", data = 308}, -- use ALT instead
            {description="ALT", data = 400},
            {description="CTRL", data = 401},
            {description="SHIFT", data = 402},
            {description="BACKSPACE", data = 8},
            {description="PERIOD", data = 46},
            {description="SLASH", data = 47},
            {description="LEFTBRACKET", data     = 91},
            {description="BACKSLASH", data     = 92},
            {description="RIGHTBRACKET", data = 93},
            {description="TILDE", data = 96},
            {description="A", data = 97},
            {description="B", data = 98},
            {description="C", data = 99},
            {description="D", data = 100},
            {description="E", data = 101},
            {description="F", data = 102},
            {description="G", data = 103},
            {description="H", data = 104},
            {description="I", data = 105},
            {description="J", data = 106},
            {description="K", data = 107},
            {description="L", data = 108},
            {description="M", data = 109},
            {description="N", data = 110},
            {description="O", data = 111},
            {description="P", data = 112},
            {description="Q", data = 113},
            {description="R", data = 114},
            {description="S", data = 115},
            {description="T", data = 116},
            {description="U", data = 117},
            {description="V", data = 118},
            {description="W", data = 119},
            {description="X", data = 120},
            {description="Y", data = 121},
            {description="Z", data = 122},
            {description="F1", data = 282},
            {description="F2", data = 283},
            {description="F3", data = 284},
            {description="F4", data = 285},
            {description="F5", data = 286},
            {description="F6", data = 287},
            {description="F7", data = 288},
            {description="F8", data = 289},
            {description="F9", data = 290},
            {description="F10", data = 291},
            {description="F11", data = 292},
            {description="F12", data = 293},
 
            {description="UP", data = 273},
            {description="DOWN", data = 274},
            {description="RIGHT", data = 275},
            {description="LEFT", data = 276},
            {description="PAGEUP", data = 280},
            {description="PAGEDOWN", data = 281},
 
            {description="0", data = 48},
            {description="1", data = 49},
            {description="2", data = 50},
            {description="3", data = 51},
            {description="4", data = 52},
            {description="5", data = 53},
            {description="6", data = 54},
            {description="7", data = 55},
            {description="8", data = 56},
            {description="9", data = 57},
        }
		


configuration_options =
{

    {
      name = "language_yuyi",
      label = "Language",
      hover = "语言",
      options = {
            {description="Chinese", data = 0},
            {description="English", data = 1},
            {description="Old Code", data = 2},
      			},
		default = 1,
    },
--[[
    {
      name = "Sound_Volume",
      label = "Sound_Volume",
      hover = "音量大小",
      options = {
            {description="0", data = 0},
            {description="1", data = 0.1},
            {description="2", data = 0.2},
            {description="3", data = 0.3},
            {description="4", data = 0.4},
            {description="5", data = 0.5},
            {description="6", data = 0.6},
            {description="7", data = 0.7},
            {description="8", data = 0.8},
            {description="9", data = 0.9},
            {description="10", data = 1},
      			},
		default = 1,
    },
]]
    {
      name = "yuyi_Hunger",
      label = "Hunger Rate",
      hover = "饥饿速率",
      options = {
            {description="0.60", data = 0.60},
            {description="0.80", data = 0.80},
            {description="1.00", data = 1.00},
            {description="1.20", data = 1.20},
            {description="1.40", data = 1.40},
            {description="1.60", data = 1.60},
            {description="1.80", data = 1.80},
      			},
		default = 1.20,
    },
    {
      name = "Initial attribute",
      label = "START HP",
      hover = "初始三维",
      options = {
            {description="55", data = 55},
            {description="65", data = 65},
            {description="75", data = 75},
            {description="85", data = 85},
            {description="95", data = 95},
            {description="105", data = 105},
            {description="115", data = 115},
      			},
		default = 75,
    },
    {
      name = "yuyi_expneed",
      label = "Need Exp",
      hover = "升级所需经验",
      options = {
            {description="1000", data = 1000},
            {description="1250", data = 1250},
            {description="1500", data = 1500},
            {description="1750", data = 1750},
            {description="2000", data = 2000},
      			},
		default = 1500,
    },
    {
      name = "yuyi_skillscost",
      label = "Skills Cost",
      hover = "技能消耗",
      options = {
            {description="4", data = 4},
            {description="5", data = 5},
            {description="6", data = 6},
            {description="7", data = 7},
            {description="8", data = 8},
      			},
		default = 6,
    },
    {
      name = "quick_pick",
      label = "Quick_Pick",
      hover = "启用镰刀功能",
      options = {
            {description="off", data = 0},
            {description="on", data = 1},
      			},
		default = 0,
    },
    {
        name = "yuyi_key1",
        label = "Skills_R",
        hover = "烈火雷电",
        options =op,
        default = 114,
    },
    {
        name = "yuyi_key2",
        label = "Skills_J",
        hover = "懒得写",
        options =op,
        default = 106,
    },
    {
        name = "yuyi_key3",
        label = "Skills_K",
        hover = "浮空",
        options =op,
        default = 107,
    },
    {
        name = "yuyi_key4",
        label = "Skills_L",
        hover = "落岩",
        options =op,
        default = 108,
    },
    {
        name = "yuyi_key5",
        label = "Skills_U",
        hover = "虎拳",
        options =op,
        default = 117,
    },
    {
        name = "yuyi_key6",
        label = "Skills_I",
        hover = "紫雷炼狱",
        options =op,
        default = 105,
    },
    {
        name = "yuyi_key7",
        label = "Skills_O",
        hover = "地狱火",
        options =op,
        default = 111,
    },

        }