Skip to content

Commit

Permalink
Merge pull request ArchipelagoMW#14 from Alchav/patch-24
Browse files Browse the repository at this point in the history
Add item and location name groups
  • Loading branch information
agilbert1412 authored Dec 6, 2023
2 parents bd6dc7f + 17d4d76 commit b2a0d8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion worlds/stardew_valley/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .bundles.bundle_room import BundleRoom
from .bundles.bundles import get_all_bundles
from .items import item_table, create_items, ItemData, Group, items_by_group, get_all_filler_items, remove_limited_amount_packs
from .locations import location_table, create_locations, LocationData
from .locations import location_table, create_locations, LocationData, locations_by_tag
from .logic.bundle_logic import BundleLogic
from .logic.logic import StardewLogic
from .logic.time_logic import MAX_MONTHS
Expand Down Expand Up @@ -64,6 +64,13 @@ class StardewValleyWorld(World):
item_name_to_id = {name: data.code for name, data in item_table.items()}
location_name_to_id = {name: data.code for name, data in location_table.items()}

item_name_groups = {group.name.replace("_", " ").title() + (" Group" if group.name.replace("_", " ").title()
in item_table else ""):
[item.name for item in items] for group, items in items_by_group.items()}
location_name_groups = {group.name.replace("_", " ").title() + (" Group" if group.name.replace("_", " ").title()
in locations_by_tag else ""):
[location.name for location in locations] for group, locations in locations_by_tag.items()}

data_version = 3
required_client_version = (0, 4, 0)

Expand Down

0 comments on commit b2a0d8b

Please sign in to comment.