Apply suggestions from code review

Co-authored-by: Scipio Wright <scipiowright@gmail.com>
This commit is contained in:
Jarno
2025-07-25 21:57:51 +02:00
committed by GitHub
parent f401879cfe
commit c47165ddc3
2 changed files with 3 additions and 3 deletions

View File

@@ -174,10 +174,10 @@ def create_region(world: MultiWorld, player: int,
return region
def create_regions(world: MultiWorld, player: int, locations_per_region: dict[str, list[LocationData]],
def create_regions(multiworld: MultiWorld, player: int, locations_per_region: dict[str, list[LocationData]],
region_names: list[str]) -> dict[str, Region]:
return {
name : create_region(world, player, locations_per_region, name)
name : create_region(multiworld, player, locations_per_region, name)
for name in region_names
}

View File

@@ -44,7 +44,7 @@ class SatisfactoryWorld(World):
def generate_early(self) -> None:
self.interpret_slot_data(None)
if self.critical_path_seed == None:
if not self.critical_path_seed:
self.critical_path_seed = self.random.random()
if self.options.mam_logic_placement.value == Placement.starting_inventory: