Fix progressive items toggle

This commit is contained in:
CaitSith2 2021-08-02 18:50:56 -07:00
parent 361bd4e5f6
commit a3924ed40a
1 changed files with 6 additions and 2 deletions

View File

@ -29,13 +29,17 @@ class Factorio(World):
def generate_basic(self): def generate_basic(self):
skip_silo = self.world.silo[self.player].value == Silo.option_spawn skip_silo = self.world.silo[self.player].value == Silo.option_spawn
print(self.world.progressive)
print(self.player)
print(self.world.progressive[self.player])
for tech_name in base_tech_table: for tech_name in base_tech_table:
if skip_silo and tech_name == "rocket-silo": if skip_silo and tech_name == "rocket-silo":
continue continue
if self.world.progressive: if self.world.progressive[self.player]:
item_name = tech_to_progressive_lookup.get(tech_name, tech_name) item_name = tech_to_progressive_lookup.get(tech_name, tech_name)
print(f"Using {item_name}")
else: else:
item_name = item_name item_name = tech_name
tech_item = self.create_item(item_name) tech_item = self.create_item(item_name)
if tech_name in self.static_nodes: if tech_name in self.static_nodes:
self.world.get_location(tech_name, self.player).place_locked_item(tech_item) self.world.get_location(tech_name, self.player).place_locked_item(tech_item)