Enable opening area to many factions

This commit is contained in:
Supergoat666 2020-07-29 09:12:16 +02:00
parent 75a0c60c55
commit fae1dae051
1 changed files with 4 additions and 0 deletions

View File

@ -322,10 +322,14 @@ if areas.factions_available then
table.insert(fnames,fname)
end
local open = true
local accessibility = ""
if #fnames == 0 then
open = false
fnames = nil
else
accessibility = " It is open for members of : "..table.concat(fnames,", ")
end
areas.areas[id].factions_names = fnames
-- Save false as nil to avoid inflating the DB.
areas.areas[id].faction_open = open or nil