Files
hk4e/gdconf/game_data_config/lua/common/LR_ChangeSuitsGadgetState.lua
2022-11-30 00:00:20 +08:00

21 lines
471 B
Go

--去重随机
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)