编辑代码

local L = locale ~= "zh" and locale ~= "zhr" -- true 英文  false 中文

version = "1.1.15" 
name = "homura"
description = 
[[
2021.3.26 维护性更新
1. 在开启某些mod时,更换配件不再会发生崩溃。
2. 降低了队友发动时间暂停时的提示音效。
]]
author = "老王, 羽中, bow-car"
forumthread = ""
api_version = 10

priority = -2029316030 - 209631439

dont_starve_compatible = false
dst_compatible = true

all_clients_require_mod = true

server_filter_tags = { 
    "character",
}

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

local alpha = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
local keyslist = {}
for i = 1,#alpha do keyslist[i] = {description = alpha[i], data = i + 64} end

local ON = {description = L and "On" or "开", data = true}
local OFF = {description = L and "Off" or "关", data = false}
configuration_options =

{
    {
        name = "language",
        label = L and "Language" or "语言",
        hover = L and "Set language" or"设置语言",
        options =  {
            {description = L and "Auto" or "自动", data = "AUTO"},
            {description = "English", data = "ENG"},
            {description = "中文", data = "CHI"}, 
        },
        default = "AUTO",
    },

    {
        name = "skillkey",
        label = L and "Skill key" or "技能键",
        hover = L and "Set hot key for skill" or "设置时停技能的键位",
        options = keyslist,
        default = 76, --L
    },   

    {
        name = 'playerdmg',
        label = L and 'Fratricide' or '友伤',
        hover = L and 'AOE weapons can hurt your teammate' or '范围效果的武器不分敌我',
        options = {
            ON,
            OFF,
        },
        default = true,
    },
}

-- BugTracker configuration 
-- https://steamcommunity.com/sharedfiles/filedetails/?id=2427481232
bugtracker_config = {
    url = "http://8.131.61.37/upload-log-homura/"
    -- email = "wlwzh9927@163.com",
}