Skip to content

Commit c97215e

Browse files
authored
TUNIC: Minor refactor of the vanilla_portals function (ArchipelagoMW#3009)
* Remove unused, change an if to an elif * Remove unused import
1 parent eb66886 commit c97215e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

worlds/tunic/er_scripts.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, List, Set, Tuple, TYPE_CHECKING
1+
from typing import Dict, List, Set, TYPE_CHECKING
22
from BaseClasses import Region, ItemClassification, Item, Location
33
from .locations import location_table
44
from .er_data import Portal, tunic_er_regions, portal_mapping, \
@@ -89,7 +89,6 @@ def place_event_items(world: "TunicWorld", regions: Dict[str, Region]) -> None:
8989
def vanilla_portals() -> Dict[Portal, Portal]:
9090
portal_pairs: Dict[Portal, Portal] = {}
9191
portal_map = portal_mapping.copy()
92-
shop_num = 1
9392

9493
while portal_map:
9594
portal1 = portal_map[0]
@@ -98,11 +97,10 @@ def vanilla_portals() -> Dict[Portal, Portal]:
9897
portal2_sdt = portal1.destination_scene()
9998

10099
if portal2_sdt.startswith("Shop,"):
101-
portal2 = Portal(name=f"Shop", region="Shop",
100+
portal2 = Portal(name="Shop", region="Shop",
102101
destination="Previous Region", tag="_")
103-
shop_num += 1
104102

105-
if portal2_sdt == "Purgatory, Purgatory_bottom":
103+
elif portal2_sdt == "Purgatory, Purgatory_bottom":
106104
portal2_sdt = "Purgatory, Purgatory_top"
107105

108106
for portal in portal_map:

0 commit comments

Comments
 (0)