do not seed new factions if there isn't a minimum number of them

This commit is contained in:
Enno Rehling 2016-05-05 13:48:57 +02:00
parent 0557aa84ac
commit 65a163b4d9

View file

@ -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)