Skip to content

Commit

Permalink
Clean up some range functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ScipioWright authored May 25, 2024
1 parent 3b5ae87 commit 0b6adf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worlds/tunic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def create_items(self) -> None:

# Remove filler to make room for other items
def remove_filler(amount: int) -> None:
for _ in range(0, amount):
for _ in range(amount):
if not available_filler:
fill = "Fool Trap"
else:
Expand Down Expand Up @@ -245,7 +245,7 @@ def remove_filler(amount: int) -> None:
items_to_create["Lantern"] = 0

for item, quantity in items_to_create.items():
for i in range(0, quantity):
for _ in range(quantity):
tunic_item: TunicItem = self.create_item(item)
if item in slot_data_item_names:
self.slot_data_items.append(tunic_item)
Expand Down Expand Up @@ -374,7 +374,7 @@ def fill_slot_data(self) -> Dict[str, Any]:
if start_item in slot_data_item_names:
if start_item not in slot_data:
slot_data[start_item] = []
for i in range(0, self.options.start_inventory_from_pool[start_item]):
for _ in range(self.options.start_inventory_from_pool[start_item]):
slot_data[start_item].extend(["Your Pocket", self.player])

for plando_item in self.multiworld.plando_items[self.player]:
Expand Down

0 comments on commit 0b6adf6

Please sign in to comment.