From 5ca0249db9524be3ddc778b52acd5eb1360893e4 Mon Sep 17 00:00:00 2001 From: Marechal-l Date: Fri, 28 Oct 2022 19:16:00 +0200 Subject: [PATCH] DS3: Changed i in loop --- worlds/dark_souls_3/Items.py | 4 +--- worlds/dark_souls_3/Locations.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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