bugfix250729.1
全站通知:

模块:动态立绘搜索

来自CrashFeverWIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

此模块的文档可以在模块:动态立绘搜索/doc创建

-- 动态立绘搜索模块
-- 用于根据角色ID查找对应的键值

local p = {}

-- 预定义的键值对数据
local keyMappings = {
    ["16471.1"] = "皮肤136",
    ["16472.1"] = "皮肤137",
    ["16429.1"] = "皮肤138",
    ["16619.1"] = "皮肤155",
    ["16769.1"] = "皮肤172",
    ["16769.2"] = "皮肤173",
    ["16769.3"] = "皮肤174",
    ["16810.1"] = "皮肤175",
    ["16816.1"] = "皮肤176",
    ["11562"] = "11562",
    ["11604"] = "11604",
    ["11637"] = "11637",
    ["11653"] = "11653",
    ["11655"] = "11655",
    ["11656"] = "11656",
    ["11657"] = "11657",
    ["11680"] = "11680",
    ["15984"] = "15984",
    ["15985"] = "15985",
    ["16007"] = "16007",
    ["16015"] = "16015",
    ["16016"] = "16016",
    ["16062"] = "16062",
    ["16098"] = "16098",
    ["16168"] = "16168",
    ["16177"] = "16177",
    ["16190"] = "16190",
    ["16191"] = "16191",
    ["16206"] = "16206",
    ["16207"] = "16207",
    ["16235"] = "16235",
    ["16273"] = "16273",
    ["16285"] = "16285",
    ["16296"] = "16296",
    ["16298"] = "16298",
    ["16299"] = "16299",
    ["16300"] = "16300",
    ["16301"] = "16301",
    ["16302"] = "16302",
    ["16311"] = "16311",
    ["16327"] = "16327",
    ["16344"] = "16344",
    ["16353"] = "16353",
    ["16367"] = "16367",
    ["16368"] = "16368",
    ["16385"] = "16385",
    ["16386"] = "16386",
    ["16391"] = "16391",
    ["16392"] = "16392",
    ["16428"] = "16428",
    ["16429"] = "16429",
    ["16434"] = "16434",
    ["16442"] = "16442",
    ["16443"] = "16443",
    ["16471"] = "16471",
    ["16472"] = "16472",
    ["16487"] = "16487",
    ["16488"] = "16488",
    ["16511"] = "16511",
    ["16523"] = "16523",
    ["16545"] = "16545",
    ["16546"] = "16546",
    ["16558"] = "16558",
    ["16563"] = "16563",
    ["16566"] = "16566",
    ["16574"] = "16574",
    ["16584"] = "16584",
    ["16587"] = "16587",
    ["16602"] = "16602",
    ["16603"] = "16603",
    ["16619"] = "16619",
    ["16626"] = "16626",
    ["16631"] = "16631",
    ["16651"] = "16651",
    ["16652"] = "16652",
    ["16663"] = "16663",
    ["16664"] = "16664",
    ["16665"] = "16665",
    ["16666"] = "16666",
    ["16667"] = "16667",
    ["16668"] = "16668",
    ["16685"] = "16685",
    ["16686"] = "16686",
    ["16702"] = "16702",
    ["16736"] = "16736",
    ["16737"] = "16737",
    ["16738"] = "16738",
    ["16747"] = "16747",
    ["16753"] = "16753",
    ["16760"] = "16760",
    ["16769"] = "16769",
    ["16776"] = "16776",
    ["16777"] = "16777",
    ["16796"] = "16796",
    ["16810"] = "16810",
    ["16816"] = "16816",
    ["16829"] = "16829",
    ["16830"] = "16830",
    ["16845"] = "16845",
    ["16849"] = "16849",
    ["16861"] = "16861",
    ["20030"] = "20030",
    ["8250"] = "8250",
    ["8379"] = "8379",
    ["8452"] = "8452",
    ["8645"] = "8645",
    ["8744"] = "8744",
    ["16885.1"] = "皮肤177",
    ["16884"] = "16884",
    ["16885"] = "16885",
    ["11717"] = "11717",
    ["11724"] = "11724",
    ["16900"] = "16900",
    ["16901"] = "16901",
    ["16935"] = "16935",
    ["16947"] = "16947",
    ["16960"] = "16960",
    ["16967"] = "16967",
    ["16968"] = "16968",
    ["16969"] = "16969",
    ["16989"] = "16989",
    ["16900"] = "16900",
    ["17000"] = "17000",
}

-- 主函数,根据输入的键查找对应的值
function p.findKey(frame)
    local inputKey = frame.args[1] or frame.args.id or ""
    
    -- 如果输入为空,返回空
    if not inputKey or inputKey == "" then
        return ""
    end
    
    -- 查找对应的键值
    local value = keyMappings[inputKey]
    
    -- 如果找到键值,返回它;否则返回空
    return value or ""
end

return p