mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Auto-validate Option.schema, Factorio: allow setting pollution values
This commit is contained in:
committed by
Fabian Dill
parent
b809d76b79
commit
10c6a70696
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user