diff --git a/worlds/dark_souls_3/Items.py b/worlds/dark_souls_3/Items.py index bb13dc7514..e7ba2ecf00 100644 --- a/worlds/dark_souls_3/Items.py +++ b/worlds/dark_souls_3/Items.py @@ -11,9 +11,7 @@ class DarkSouls3Item(Item): table_offset = 100 output = {} - i = 0 - for table in item_tables: + for i, table in enumerate(item_tables): output.update({name: id for id, name in enumerate(table, base_id + (table_offset * i))}) - i += 1 return output diff --git a/worlds/dark_souls_3/Locations.py b/worlds/dark_souls_3/Locations.py index d7196f8295..0ba84e365b 100644 --- a/worlds/dark_souls_3/Locations.py +++ b/worlds/dark_souls_3/Locations.py @@ -11,9 +11,7 @@ class DarkSouls3Location(Location): table_offset = 100 output = {} - i = 0 - for table in location_tables: + for i, table in enumerate(location_tables): output.update({name: id for id, name in enumerate(table, base_id + (table_offset * i))}) - i += 1 return output