添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--去重随机
function LR_ChangeSuitsGadgetState(context, suite , gadgetState)
local gadgets = suite.gadgets
for i,v in ipairs(gadgets) do
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, v, gadgetState) then
ScriptLib.PrintContextLog(context, "## TD_ERROR_LOG : v -> " .. v .. "//gadgetState ->" .. gadgetState)
return -1
end
end
end
-- 调试代码 --
-- LR_ChangeSuitsGadgetState(context, suites[1],201)