provide alternative to table.pack()

This commit is contained in:
Luke aka SwissalpS 2024-09-18 03:52:49 +02:00
parent 210f0ab21d
commit 7c2398b541

@ -1,7 +1,12 @@
-- requires [fakelib] to work properly
-- https://github.com/OgelGames/fakelib.git
local pd = function(...) print(dump(table.pack(...))) end
local pd
if table.packer then
pd = function(...) print(dump(table.pack(...))) end
else
pd = function(...) for _, v in ipairs({ ... }) do print(dump(v)) end end
end
local f, fcc, S = factions, factions.handle_command, factions.S
f.mode_unique_faction = false
f.max_members_list = 11