From 65a163b4d94498377f0e599b79f5483e4e4dfbec Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 5 May 2016 13:48:57 +0200 Subject: [PATCH] do not seed new factions if there isn't a minimum number of them --- scripts/eressea/autoseed.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/eressea/autoseed.lua b/scripts/eressea/autoseed.lua index 35c7f0e34..25a799ff4 100644 --- a/scripts/eressea/autoseed.lua +++ b/scripts/eressea/autoseed.lua @@ -69,12 +69,12 @@ end function autoseed.init() -- local newbs = {} - local num_seeded = 2 + local num_seeded = per_region local start = nil eressea.log.info('autoseed new players') players = read_players() - if players and #players > 0 then + if players and #players >= per_region then local sel eressea.log.info(#players .. ' new players') sel = select_regions(regions(), peasants, trees)