|
1 | 1 | from .items import item_table, optional_scholar_abilities, get_random_starting_jobs, filler_items, \ |
2 | 2 | get_item_names_per_category, progressive_equipment, non_progressive_equipment, get_starting_jobs, \ |
3 | 3 | set_jobs_at_default_locations, default_starting_job_list, job_list |
4 | | -from .locations import get_locations, get_bosses |
| 4 | +from .locations import get_locations, get_bosses, get_shops |
5 | 5 | from .regions import init_areas |
6 | 6 | from .options import CrystalProjectOptions, IncludedRegions |
7 | 7 | from .rules import CrystalProjectLogic |
@@ -36,7 +36,9 @@ class CrystalProjectWorld(World): |
36 | 36 | item_name_to_id = {item: item_table[item].code for item in item_table} |
37 | 37 | location_name_to_id = {location.name: location.code for location in get_locations(-1, None)} |
38 | 38 | boss_name_to_id = {boss.name: boss.code for boss in get_bosses(-1, None)} |
39 | | - location_name_to_id.update(boss_name_to_id) |
| 39 | + shop_name_to_id = {shop.name: shop.code for shop in get_shops(-1, None)} |
| 40 | + location_name_to_id.update(boss_name_to_id) |
| 41 | + location_name_to_id.update(shop_name_to_id) |
40 | 42 | item_name_groups = get_item_names_per_category() |
41 | 43 | web = CrystalProjectWeb() |
42 | 44 |
|
@@ -133,6 +135,10 @@ def create_regions(self) -> None: |
133 | 135 | bosses = get_bosses(self.player, self.options) |
134 | 136 | locations.extend(bosses) |
135 | 137 |
|
| 138 | + if self.options.shopsanity: |
| 139 | + shops = get_shops(self.player, self.options) |
| 140 | + locations.extend(shops) |
| 141 | + |
136 | 142 | init_areas(self, locations, self.options) |
137 | 143 |
|
138 | 144 | if self.options.jobRando.value == self.options.jobRando.option_none: |
|
0 commit comments