Skip to content

Commit 6004f3d

Browse files
committed
Fix up additional places where lower-case "no category" was used.
1 parent e2df60d commit 6004f3d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ManualClient.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ class ManualManager(GameManager):
163163
("Manual", "Manual"),
164164
]
165165
base_title = "Archipelago Manual Client"
166-
listed_items = {"(no category)": []}
167-
item_categories = ["(no category)"]
168-
listed_locations = {"(no category)": []}
169-
location_categories = ["(no category)"]
166+
listed_items = {"(No Category)": []}
167+
item_categories = ["(No Category)"]
168+
listed_locations = {"(No Category)": []}
169+
location_categories = ["(No Category)"]
170170

171171
active_item_accordion = 0
172172
active_location_accordion = 0
@@ -287,7 +287,7 @@ def build_tracker_and_locations_table(self):
287287

288288
self.listed_locations[category].append(location_id)
289289
else: # leave it in the generic category
290-
self.listed_locations["(no category)"].append(location_id)
290+
self.listed_locations["(No Category)"].append(location_id)
291291

292292
victory_location = self.ctx.get_location_by_name("__Manual Game Complete__")
293293

@@ -329,7 +329,7 @@ def build_tracker_and_locations_table(self):
329329
locations_in_category = len(self.listed_locations[location_category])
330330

331331
if ("category" in victory_location_data and location_category in victory_location_data["category"]) or \
332-
("category" not in victory_location_data and location_category == "(no category)"):
332+
("category" not in victory_location_data and location_category == "(No Category)"):
333333
locations_in_category += 1
334334

335335
category_tree = locations_panel.add_node(
@@ -348,8 +348,8 @@ def build_tracker_and_locations_table(self):
348348

349349
# if this is the category that Victory is in, display the Victory button
350350
# if ("category" in victory_location_data and location_category in victory_location_data["category"]) or \
351-
# ("category" not in victory_location_data and location_category == "(no category)"):
352-
if (location_category == "(no category)"):
351+
# ("category" not in victory_location_data and location_category == "(No Category)"):
352+
if (location_category == "(No Category)"):
353353

354354
# Add the Victory location to be marked at any point, which is why locations length has 1 added to it above
355355
location_button = TreeViewButton(text="VICTORY! (seed finished)", size_hint=(None, None), height=30, width=400)
@@ -417,12 +417,12 @@ def update_tracker_and_locations_table(self, update_highlights=False):
417417
item_data = self.ctx.get_item_by_name(item_name)
418418

419419
if "category" not in item_data or not item_data["category"]:
420-
item_data["category"] = ["(no category)"]
420+
item_data["category"] = ["(No Category)"]
421421

422422
if category_name in item_data["category"] and network_item.item not in self.listed_items[category_name]:
423423
item_name_parts = self.ctx.item_names[network_item.item].split(":")
424424
item_count = len(list(i for i in self.ctx.items_received if i.item == network_item.item))
425-
item_text = Label(text="%s (%s)" % (item_name_parts[0], item_count),
425+
item_text = Label(text="%s (%s)" % (item_name_parts[0], item_count),
426426
size_hint=(None, None), height=30, width=400, bold=True)
427427

428428
category_grid.add_widget(item_text)

0 commit comments

Comments
 (0)