forked from github/server
do not seed new factions if there isn't a minimum number of them
This commit is contained in:
parent
0557aa84ac
commit
65a163b4d9
1 changed files with 2 additions and 2 deletions
|
@ -69,12 +69,12 @@ end
|
||||||
|
|
||||||
function autoseed.init()
|
function autoseed.init()
|
||||||
-- local newbs = {}
|
-- local newbs = {}
|
||||||
local num_seeded = 2
|
local num_seeded = per_region
|
||||||
local start = nil
|
local start = nil
|
||||||
|
|
||||||
eressea.log.info('autoseed new players')
|
eressea.log.info('autoseed new players')
|
||||||
players = read_players()
|
players = read_players()
|
||||||
if players and #players > 0 then
|
if players and #players >= per_region then
|
||||||
local sel
|
local sel
|
||||||
eressea.log.info(#players .. ' new players')
|
eressea.log.info(#players .. ' new players')
|
||||||
sel = select_regions(regions(), peasants, trees)
|
sel = select_regions(regions(), peasants, trees)
|
||||||
|
|
Loading…
Reference in a new issue