Factorio: map gen: allow width and height

Don't accept arbitrary keys to catch typos.
This should be all 'basic' map gen settings now.
This commit is contained in:
black-sliver 2022-05-05 01:59:41 +02:00 committed by Fabian Dill
parent 7fad0b0f51
commit c27bfc515e
1 changed files with 2 additions and 0 deletions

View File

@ -262,6 +262,8 @@ class FactorioWorldGen(OptionDict):
}
},
Optional("seed"): Or(None, And(int, lambda n: n >= 0)),
Optional("width"): And(int, lambda n: n >= 0),
Optional("height"): And(int, lambda n: n >= 0),
Optional("starting_area"): FloatRange(0.166, 6),
Optional("peaceful_mode"): LuaBool,
Optional("cliff_settings"): {