Skip to content

Commit 9e97aa5

Browse files
committed
Added comments, comments clean-up.
1 parent 75b73dc commit 9e97aa5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WebHostLib/tracker.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2506,6 +2506,7 @@ def render_Starcraft2_tracker(tracker_data: TrackerData, team: int, player: int)
25062506
REGION_SPECIAL_ZONE
25072507
]
25082508

2509+
# mapping table
25092510
location_regions_table = {
25102511
f"{REGION_YOSHIS_ISLAND} 1" : REGION_YOSHIS_ISLAND,
25112512
f"{REGION_YOSHIS_ISLAND} 2" : REGION_YOSHIS_ISLAND,
@@ -2658,8 +2659,9 @@ def render_SMW_tracker(tracker_data: TrackerData, team: int, player: int) -> str
26582659
# Translate non-progression items to progression items for tracker simplicity.
26592660
prepare_inventories(team, player, inventory, tracker_data)
26602661

2661-
#route = tracker_data.get_slot_data(team, player)["route"]
2662-
2662+
# Mapping check to region/level
2663+
# This way we can use the actual checkes for the player and
2664+
# don't need to implement the available locations based on settings.
26632665
locations_to_check = {
26642666
tracker_data.location_id_to_name["Super Mario World"][id] : (id, region)
26652667
for id in tracker_data.get_player_locations(team, player).keys()

0 commit comments

Comments
 (0)