Auto-validate Option.schema, Factorio: allow setting pollution values

This commit is contained in:
black-sliver
2021-07-19 01:02:23 +02:00
committed by Fabian Dill
parent b809d76b79
commit 10c6a70696
7 changed files with 88 additions and 12 deletions

View File

@@ -36,9 +36,9 @@ class Factorio(World):
self.world.get_location(tech_name, self.player).place_locked_item(tech_item)
else:
self.world.itempool.append(tech_item)
world_gen = self.world.world_gen[self.player].value
if world_gen.get("seed", None) is None: # allow seed 0
world_gen["seed"] = self.world.slot_seeds[self.player].randint(0, 2**32-1) # 32 bit uint
map_basic_settings = self.world.world_gen[self.player].value["basic"]
if map_basic_settings.get("seed", None) is None: # allow seed 0
map_basic_settings["seed"] = self.world.slot_seeds[self.player].randint(0, 2**32-1) # 32 bit uint
generate_output = generate_mod