We don't need a special parameter for 'no barbarians'... since we can jut not include barbarians in the Nations to begin with...

Obviously
This commit is contained in:
Yair Morgenstern 2020-04-19 09:16:19 +03:00
parent 004bede4bb
commit 9b1ca770cb
2 changed files with 1 additions and 2 deletions

View file

@ -62,7 +62,7 @@ object GameStarter {
availableCivNames.removeAll(newGameParameters.players.map { it.chosenCiv })
availableCivNames.remove(Constants.barbarians)
if(!newGameParameters.noBarbarians && ruleset.modOptions.barbarians!=Constants.disabled) {
if(!newGameParameters.noBarbarians && ruleset.nations.containsKey(Constants.barbarians)) {
val barbarianCivilization = CivilizationInfo(Constants.barbarians)
gameInfo.civilizations.add(barbarianCivilization)
}

View file

@ -17,7 +17,6 @@ import kotlin.collections.set
class ModOptions {
var isBaseRuleset = false
var barbarians = Constants.enabled
var techsToRemove = HashSet<String>()
var buildingsToRemove = HashSet<String>()
var unitsToRemove = HashSet<String>()