summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--data/LL1.yaml (renamed from LL1.yaml)61
-rw-r--r--data/__init__.py0
-rw-r--r--data/ids.yaml (renamed from ids.yaml)0
-rw-r--r--static_logic.py12
4 files changed, 68 insertions, 5 deletions
diff --git a/LL1.yaml b/data/LL1.yaml index f8b07b8..d46403e 100644 --- a/LL1.yaml +++ b/data/LL1.yaml
@@ -42,6 +42,8 @@
42 # this panel. 42 # this panel.
43 # - non_counting: If True, this panel does not contribute to the total needed 43 # - non_counting: If True, this panel does not contribute to the total needed
44 # to unlock Level 2. 44 # to unlock Level 2.
45 # - hunt: If True, the tracker will show this panel even when it is
46 # not a check. Used for hunts like the Number Hunt.
45 # 47 #
46 # doors is an array of doors associated with this room. When door 48 # doors is an array of doors associated with this room. When door
47 # randomization is enabled, each of these is an item. The key is a name that 49 # randomization is enabled, each of these is an item. The key is a name that
@@ -449,6 +451,7 @@
449 FOUR: 451 FOUR:
450 id: Backside Room/Panel_four_four_3 452 id: Backside Room/Panel_four_four_3
451 tag: midwhite 453 tag: midwhite
454 hunt: True
452 required_door: 455 required_door:
453 room: Outside The Undeterred 456 room: Outside The Undeterred
454 door: Fours 457 door: Fours
@@ -521,12 +524,14 @@
521 FOUR: 524 FOUR:
522 id: Backside Room/Panel_four_four_2 525 id: Backside Room/Panel_four_four_2
523 tag: midwhite 526 tag: midwhite
527 hunt: True
524 required_door: 528 required_door:
525 room: Outside The Undeterred 529 room: Outside The Undeterred
526 door: Fours 530 door: Fours
527 EIGHT: 531 EIGHT:
528 id: Backside Room/Panel_eight_eight_8 532 id: Backside Room/Panel_eight_eight_8
529 tag: midwhite 533 tag: midwhite
534 hunt: True
530 required_door: 535 required_door:
531 room: Number Hunt 536 room: Number Hunt
532 door: Eights 537 door: Eights
@@ -551,6 +556,7 @@
551 MASTERY: 556 MASTERY:
552 id: Master Room/Panel_mastery_mastery14 557 id: Master Room/Panel_mastery_mastery14
553 tag: midwhite 558 tag: midwhite
559 hunt: True
554 required_door: 560 required_door:
555 room: Orange Tower Seventh Floor 561 room: Orange Tower Seventh Floor
556 door: Mastery 562 door: Mastery
@@ -662,6 +668,7 @@
662 EIGHT: 668 EIGHT:
663 id: Backside Room/Panel_eight_eight_5 669 id: Backside Room/Panel_eight_eight_5
664 tag: midwhite 670 tag: midwhite
671 hunt: True
665 required_door: 672 required_door:
666 room: Number Hunt 673 room: Number Hunt
667 door: Eights 674 door: Eights
@@ -843,6 +850,7 @@
843 NINE: 850 NINE:
844 id: Backside Room/Panel_nine_nine_3 851 id: Backside Room/Panel_nine_nine_3
845 tag: midwhite 852 tag: midwhite
853 hunt: True
846 required_door: 854 required_door:
847 room: Number Hunt 855 room: Number Hunt
848 door: Nines 856 door: Nines
@@ -1055,17 +1063,20 @@
1055 PURPLE: 1063 PURPLE:
1056 id: Color Arrow Room/Panel_purple_afar 1064 id: Color Arrow Room/Panel_purple_afar
1057 tag: midwhite 1065 tag: midwhite
1066 hunt: True
1058 required_door: 1067 required_door:
1059 door: Purple Barrier 1068 door: Purple Barrier
1060 FIVE (1): 1069 FIVE (1):
1061 id: Backside Room/Panel_five_five_5 1070 id: Backside Room/Panel_five_five_5
1062 tag: midwhite 1071 tag: midwhite
1072 hunt: True
1063 required_door: 1073 required_door:
1064 room: Outside The Undeterred 1074 room: Outside The Undeterred
1065 door: Fives 1075 door: Fives
1066 FIVE (2): 1076 FIVE (2):
1067 id: Backside Room/Panel_five_five_4 1077 id: Backside Room/Panel_five_five_4
1068 tag: midwhite 1078 tag: midwhite
1079 hunt: True
1069 required_door: 1080 required_door:
1070 room: Outside The Undeterred 1081 room: Outside The Undeterred
1071 door: Fives 1082 door: Fives
@@ -1296,12 +1307,14 @@
1296 MASTERY (1): 1307 MASTERY (1):
1297 id: Master Room/Panel_mastery_mastery5 1308 id: Master Room/Panel_mastery_mastery5
1298 tag: midwhite 1309 tag: midwhite
1310 hunt: True
1299 required_door: 1311 required_door:
1300 room: Orange Tower Seventh Floor 1312 room: Orange Tower Seventh Floor
1301 door: Mastery 1313 door: Mastery
1302 MASTERY (2): 1314 MASTERY (2):
1303 id: Master Room/Panel_mastery_mastery9 1315 id: Master Room/Panel_mastery_mastery9
1304 tag: midwhite 1316 tag: midwhite
1317 hunt: True
1305 required_door: 1318 required_door:
1306 room: Orange Tower Seventh Floor 1319 room: Orange Tower Seventh Floor
1307 door: Mastery 1320 door: Mastery
@@ -1545,6 +1558,7 @@
1545 BACKSIDE: 1558 BACKSIDE:
1546 id: Backside Room/Panel_backside_2 1559 id: Backside Room/Panel_backside_2
1547 tag: midwhite 1560 tag: midwhite
1561 hunt: True
1548 required_door: 1562 required_door:
1549 door: Backside Door 1563 door: Backside Door
1550 STAIRS: 1564 STAIRS:
@@ -1912,6 +1926,7 @@
1912 RED: 1926 RED:
1913 id: Color Arrow Room/Panel_red_afar 1927 id: Color Arrow Room/Panel_red_afar
1914 tag: midwhite 1928 tag: midwhite
1929 hunt: True
1915 required_door: 1930 required_door:
1916 door: Red Barrier 1931 door: Red Barrier
1917 DEER + WREN: 1932 DEER + WREN:
@@ -2013,6 +2028,7 @@
2013 EIGHT: 2028 EIGHT:
2014 id: Backside Room/Panel_eight_eight_3 2029 id: Backside Room/Panel_eight_eight_3
2015 tag: midwhite 2030 tag: midwhite
2031 hunt: True
2016 required_door: 2032 required_door:
2017 room: Number Hunt 2033 room: Number Hunt
2018 door: Eights 2034 door: Eights
@@ -2058,6 +2074,7 @@
2058 NINE: 2074 NINE:
2059 id: Backside Room/Panel_nine_nine_2 2075 id: Backside Room/Panel_nine_nine_2
2060 tag: midwhite 2076 tag: midwhite
2077 hunt: True
2061 required_door: 2078 required_door:
2062 room: Number Hunt 2079 room: Number Hunt
2063 door: Nines 2080 door: Nines
@@ -2163,6 +2180,7 @@
2163 # accessed by jumping from the top of the tower. 2180 # accessed by jumping from the top of the tower.
2164 id: Master Room/Panel_mastery_mastery8 2181 id: Master Room/Panel_mastery_mastery8
2165 tag: midwhite 2182 tag: midwhite
2183 hunt: True
2166 required_door: 2184 required_door:
2167 door: Mastery 2185 door: Mastery
2168 doors: 2186 doors:
@@ -2234,36 +2252,42 @@
2234 MASTERY (1): 2252 MASTERY (1):
2235 id: Master Room/Panel_mastery_mastery6 2253 id: Master Room/Panel_mastery_mastery6
2236 tag: midwhite 2254 tag: midwhite
2255 hunt: True
2237 required_door: 2256 required_door:
2238 room: Orange Tower Seventh Floor 2257 room: Orange Tower Seventh Floor
2239 door: Mastery 2258 door: Mastery
2240 MASTERY (2): 2259 MASTERY (2):
2241 id: Master Room/Panel_mastery_mastery7 2260 id: Master Room/Panel_mastery_mastery7
2242 tag: midwhite 2261 tag: midwhite
2262 hunt: True
2243 required_door: 2263 required_door:
2244 room: Orange Tower Seventh Floor 2264 room: Orange Tower Seventh Floor
2245 door: Mastery 2265 door: Mastery
2246 MASTERY (3): 2266 MASTERY (3):
2247 id: Master Room/Panel_mastery_mastery10 2267 id: Master Room/Panel_mastery_mastery10
2248 tag: midwhite 2268 tag: midwhite
2269 hunt: True
2249 required_door: 2270 required_door:
2250 room: Orange Tower Seventh Floor 2271 room: Orange Tower Seventh Floor
2251 door: Mastery 2272 door: Mastery
2252 MASTERY (4): 2273 MASTERY (4):
2253 id: Master Room/Panel_mastery_mastery11 2274 id: Master Room/Panel_mastery_mastery11
2254 tag: midwhite 2275 tag: midwhite
2276 hunt: True
2255 required_door: 2277 required_door:
2256 room: Orange Tower Seventh Floor 2278 room: Orange Tower Seventh Floor
2257 door: Mastery 2279 door: Mastery
2258 MASTERY (5): 2280 MASTERY (5):
2259 id: Master Room/Panel_mastery_mastery12 2281 id: Master Room/Panel_mastery_mastery12
2260 tag: midwhite 2282 tag: midwhite
2283 hunt: True
2261 required_door: 2284 required_door:
2262 room: Orange Tower Seventh Floor 2285 room: Orange Tower Seventh Floor
2263 door: Mastery 2286 door: Mastery
2264 MASTERY (6): 2287 MASTERY (6):
2265 id: Master Room/Panel_mastery_mastery15 2288 id: Master Room/Panel_mastery_mastery15
2266 tag: midwhite 2289 tag: midwhite
2290 hunt: True
2267 required_door: 2291 required_door:
2268 room: Orange Tower Seventh Floor 2292 room: Orange Tower Seventh Floor
2269 door: Mastery 2293 door: Mastery
@@ -2279,6 +2303,7 @@
2279 MASTERY: 2303 MASTERY:
2280 id: Master Room/Panel_mastery_mastery3 2304 id: Master Room/Panel_mastery_mastery3
2281 tag: midwhite 2305 tag: midwhite
2306 hunt: True
2282 required_door: 2307 required_door:
2283 room: Orange Tower Seventh Floor 2308 room: Orange Tower Seventh Floor
2284 door: Mastery 2309 door: Mastery
@@ -2309,9 +2334,11 @@
2309 id: Strand Room/Panel_i_staring 2334 id: Strand Room/Panel_i_staring
2310 colors: blue 2335 colors: blue
2311 tag: forbid 2336 tag: forbid
2337 hunt: True
2312 GREEN: 2338 GREEN:
2313 id: Color Arrow Room/Panel_green_afar 2339 id: Color Arrow Room/Panel_green_afar
2314 tag: midwhite 2340 tag: midwhite
2341 hunt: True
2315 required_door: 2342 required_door:
2316 door: Green Barrier 2343 door: Green Barrier
2317 PINECONE: 2344 PINECONE:
@@ -2356,9 +2383,11 @@
2356 BACKSIDE: 2383 BACKSIDE:
2357 id: Backside Room/Panel_backside_3 2384 id: Backside Room/Panel_backside_3
2358 tag: midwhite 2385 tag: midwhite
2386 hunt: True
2359 NINE: 2387 NINE:
2360 id: Backside Room/Panel_nine_nine_8 2388 id: Backside Room/Panel_nine_nine_8
2361 tag: midwhite 2389 tag: midwhite
2390 hunt: True
2362 required_door: 2391 required_door:
2363 room: Number Hunt 2392 room: Number Hunt
2364 door: Nines 2393 door: Nines
@@ -2725,35 +2754,41 @@
2725 SEVEN (1): 2754 SEVEN (1):
2726 id: Backside Room/Panel_seven_seven_5 2755 id: Backside Room/Panel_seven_seven_5
2727 tag: midwhite 2756 tag: midwhite
2757 hunt: True
2728 required_door: 2758 required_door:
2729 room: Number Hunt 2759 room: Number Hunt
2730 door: Sevens 2760 door: Sevens
2731 SEVEN (2): 2761 SEVEN (2):
2732 id: Backside Room/Panel_seven_seven_6 2762 id: Backside Room/Panel_seven_seven_6
2733 tag: midwhite 2763 tag: midwhite
2764 hunt: True
2734 required_door: 2765 required_door:
2735 room: Number Hunt 2766 room: Number Hunt
2736 door: Sevens 2767 door: Sevens
2737 EIGHT: 2768 EIGHT:
2738 id: Backside Room/Panel_eight_eight_7 2769 id: Backside Room/Panel_eight_eight_7
2739 tag: midwhite 2770 tag: midwhite
2771 hunt: True
2740 required_door: 2772 required_door:
2741 room: Number Hunt 2773 room: Number Hunt
2742 door: Eights 2774 door: Eights
2743 NINE: 2775 NINE:
2744 id: Backside Room/Panel_nine_nine_4 2776 id: Backside Room/Panel_nine_nine_4
2745 tag: midwhite 2777 tag: midwhite
2778 hunt: True
2746 required_door: 2779 required_door:
2747 room: Number Hunt 2780 room: Number Hunt
2748 door: Nines 2781 door: Nines
2749 BLUE: 2782 BLUE:
2750 id: Color Arrow Room/Panel_blue_afar 2783 id: Color Arrow Room/Panel_blue_afar
2751 tag: midwhite 2784 tag: midwhite
2785 hunt: True
2752 required_door: 2786 required_door:
2753 door: Blue Barrier 2787 door: Blue Barrier
2754 ORANGE: 2788 ORANGE:
2755 id: Color Arrow Room/Panel_orange_afar 2789 id: Color Arrow Room/Panel_orange_afar
2756 tag: midwhite 2790 tag: midwhite
2791 hunt: True
2757 required_door: 2792 required_door:
2758 door: Orange Barrier 2793 door: Orange Barrier
2759 UNCOVER: 2794 UNCOVER:
@@ -3077,6 +3112,7 @@
3077 FOUR: 3112 FOUR:
3078 id: Backside Room/Panel_four_four_4 3113 id: Backside Room/Panel_four_four_4
3079 tag: midwhite 3114 tag: midwhite
3115 hunt: True
3080 required_door: 3116 required_door:
3081 room: Outside The Undeterred 3117 room: Outside The Undeterred
3082 door: Fours 3118 door: Fours
@@ -3135,12 +3171,14 @@
3135 SIX: 3171 SIX:
3136 id: Backside Room/Panel_six_six_4 3172 id: Backside Room/Panel_six_six_4
3137 tag: midwhite 3173 tag: midwhite
3174 hunt: True
3138 required_door: 3175 required_door:
3139 room: Number Hunt 3176 room: Number Hunt
3140 door: Sixes 3177 door: Sixes
3141 NINE: 3178 NINE:
3142 id: Backside Room/Panel_nine_nine_5 3179 id: Backside Room/Panel_nine_nine_5
3143 tag: midwhite 3180 tag: midwhite
3181 hunt: True
3144 required_door: 3182 required_door:
3145 room: Number Hunt 3183 room: Number Hunt
3146 door: Nines 3184 door: Nines
@@ -3804,46 +3842,54 @@
3804 FIVE (1): 3842 FIVE (1):
3805 id: Backside Room/Panel_five_five_3 3843 id: Backside Room/Panel_five_five_3
3806 tag: midwhite 3844 tag: midwhite
3845 hunt: True
3807 required_panel: 3846 required_panel:
3808 panel: LIGHT 3847 panel: LIGHT
3809 FIVE (2): 3848 FIVE (2):
3810 id: Backside Room/Panel_five_five_2 3849 id: Backside Room/Panel_five_five_2
3811 tag: midwhite 3850 tag: midwhite
3851 hunt: True
3812 required_panel: 3852 required_panel:
3813 panel: WARD 3853 panel: WARD
3814 SIX (1): 3854 SIX (1):
3815 id: Backside Room/Panel_six_six_3 3855 id: Backside Room/Panel_six_six_3
3816 tag: midwhite 3856 tag: midwhite
3857 hunt: True
3817 required_door: 3858 required_door:
3818 room: Number Hunt 3859 room: Number Hunt
3819 door: Sixes 3860 door: Sixes
3820 SIX (2): 3861 SIX (2):
3821 id: Backside Room/Panel_six_six_2 3862 id: Backside Room/Panel_six_six_2
3822 tag: midwhite 3863 tag: midwhite
3864 hunt: True
3823 required_door: 3865 required_door:
3824 room: Number Hunt 3866 room: Number Hunt
3825 door: Sixes 3867 door: Sixes
3826 SEVEN: 3868 SEVEN:
3827 id: Backside Room/Panel_seven_seven_2 3869 id: Backside Room/Panel_seven_seven_2
3828 tag: midwhite 3870 tag: midwhite
3871 hunt: True
3829 required_door: 3872 required_door:
3830 room: Number Hunt 3873 room: Number Hunt
3831 door: Sevens 3874 door: Sevens
3832 EIGHT: 3875 EIGHT:
3833 id: Backside Room/Panel_eight_eight_2 3876 id: Backside Room/Panel_eight_eight_2
3834 tag: midwhite 3877 tag: midwhite
3878 hunt: True
3835 required_door: 3879 required_door:
3836 room: Number Hunt 3880 room: Number Hunt
3837 door: Eights 3881 door: Eights
3838 NINE: 3882 NINE:
3839 id: Backside Room/Panel_nine_nine_6 3883 id: Backside Room/Panel_nine_nine_6
3840 tag: midwhite 3884 tag: midwhite
3885 hunt: True
3841 required_door: 3886 required_door:
3842 room: Number Hunt 3887 room: Number Hunt
3843 door: Nines 3888 door: Nines
3844 BACKSIDE: 3889 BACKSIDE:
3845 id: Backside Room/Panel_backside_4 3890 id: Backside Room/Panel_backside_4
3846 tag: midwhite 3891 tag: midwhite
3892 hunt: True
3847 "834283054": 3893 "834283054":
3848 id: Tower Room/Panel_834283054_undaunted 3894 id: Tower Room/Panel_834283054_undaunted
3849 colors: orange 3895 colors: orange
@@ -3864,6 +3910,7 @@
3864 YELLOW: 3910 YELLOW:
3865 id: Color Arrow Room/Panel_yellow_afar 3911 id: Color Arrow Room/Panel_yellow_afar
3866 tag: midwhite 3912 tag: midwhite
3913 hunt: True
3867 required_door: 3914 required_door:
3868 door: Yellow Barrier 3915 door: Yellow Barrier
3869 WADED + WEE: 3916 WADED + WEE:
@@ -4100,6 +4147,7 @@
4100 BACKSIDE: 4147 BACKSIDE:
4101 id: Backside Room/Panel_backside_5 4148 id: Backside Room/Panel_backside_5
4102 tag: midwhite 4149 tag: midwhite
4150 hunt: True
4103 required_door: 4151 required_door:
4104 door: Backside Door 4152 door: Backside Door
4105 PART: 4153 PART:
@@ -4144,6 +4192,7 @@
4144 colors: 4192 colors:
4145 - red 4193 - red
4146 - yellow 4194 - yellow
4195 hunt: True
4147 required_door: 4196 required_door:
4148 room: Number Hunt 4197 room: Number Hunt
4149 door: Sixes 4198 door: Sixes
@@ -4221,6 +4270,7 @@
4221 colors: 4270 colors:
4222 - red 4271 - red
4223 - yellow 4272 - yellow
4273 hunt: True
4224 required_door: 4274 required_door:
4225 room: Number Hunt 4275 room: Number Hunt
4226 door: Sixes 4276 door: Sixes
@@ -4547,6 +4597,7 @@
4547 MASTERY: 4597 MASTERY:
4548 id: Master Room/Panel_mastery_mastery2 4598 id: Master Room/Panel_mastery_mastery2
4549 tag: midwhite 4599 tag: midwhite
4600 hunt: True
4550 required_door: 4601 required_door:
4551 room: Orange Tower Seventh Floor 4602 room: Orange Tower Seventh Floor
4552 door: Mastery 4603 door: Mastery
@@ -4988,18 +5039,21 @@
4988 SEVEN (1): 5039 SEVEN (1):
4989 id: Backside Room/Panel_seven_seven_7 5040 id: Backside Room/Panel_seven_seven_7
4990 tag: midwhite 5041 tag: midwhite
5042 hunt: True
4991 required_door: 5043 required_door:
4992 - room: Number Hunt 5044 - room: Number Hunt
4993 door: Sevens 5045 door: Sevens
4994 SEVEN (2): 5046 SEVEN (2):
4995 id: Backside Room/Panel_seven_seven_3 5047 id: Backside Room/Panel_seven_seven_3
4996 tag: midwhite 5048 tag: midwhite
5049 hunt: True
4997 required_door: 5050 required_door:
4998 - room: Number Hunt 5051 - room: Number Hunt
4999 door: Sevens 5052 door: Sevens
5000 SEVEN (3): 5053 SEVEN (3):
5001 id: Backside Room/Panel_seven_seven_4 5054 id: Backside Room/Panel_seven_seven_4
5002 tag: midwhite 5055 tag: midwhite
5056 hunt: True
5003 required_door: 5057 required_door:
5004 - room: Number Hunt 5058 - room: Number Hunt
5005 door: Sevens 5059 door: Sevens
@@ -5598,6 +5652,7 @@
5598 EIGHT: 5652 EIGHT:
5599 id: Backside Room/Panel_eight_eight_4 5653 id: Backside Room/Panel_eight_eight_4
5600 tag: midwhite 5654 tag: midwhite
5655 hunt: True
5601 required_door: 5656 required_door:
5602 room: Number Hunt 5657 room: Number Hunt
5603 door: Eights 5658 door: Eights
@@ -5797,6 +5852,7 @@
5797 MASTERY: 5852 MASTERY:
5798 id: Master Room/Panel_mastery_mastery4 5853 id: Master Room/Panel_mastery_mastery4
5799 tag: midwhite 5854 tag: midwhite
5855 hunt: True
5800 required_door: 5856 required_door:
5801 room: Orange Tower Seventh Floor 5857 room: Orange Tower Seventh Floor
5802 door: Mastery 5858 door: Mastery
@@ -5915,9 +5971,11 @@
5915 id: Strand Room/Panel_a_strands 5971 id: Strand Room/Panel_a_strands
5916 colors: blue 5972 colors: blue
5917 tag: forbid 5973 tag: forbid
5974 hunt: True
5918 NINE: 5975 NINE:
5919 id: Backside Room/Panel_nine_nine_7 5976 id: Backside Room/Panel_nine_nine_7
5920 tag: midwhite 5977 tag: midwhite
5978 hunt: True
5921 required_door: 5979 required_door:
5922 room: Number Hunt 5980 room: Number Hunt
5923 door: Nines 5981 door: Nines
@@ -5929,6 +5987,7 @@
5929 MASTERY: 5987 MASTERY:
5930 id: Master Room/Panel_mastery_mastery13 5988 id: Master Room/Panel_mastery_mastery13
5931 tag: midwhite 5989 tag: midwhite
5990 hunt: True
5932 required_door: 5991 required_door:
5933 room: Orange Tower Seventh Floor 5992 room: Orange Tower Seventh Floor
5934 door: Mastery 5993 door: Mastery
@@ -6025,6 +6084,7 @@
6025 EIGHT: 6084 EIGHT:
6026 id: Backside Room/Panel_eight_eight_6 6085 id: Backside Room/Panel_eight_eight_6
6027 tag: midwhite 6086 tag: midwhite
6087 hunt: True
6028 required_door: 6088 required_door:
6029 room: Number Hunt 6089 room: Number Hunt
6030 door: Eights 6090 door: Eights
@@ -6322,6 +6382,7 @@
6322 NINE: 6382 NINE:
6323 id: Backside Room/Panel_nine_nine_9 6383 id: Backside Room/Panel_nine_nine_9
6324 tag: midwhite 6384 tag: midwhite
6385 hunt: True
6325 required_door: 6386 required_door:
6326 room: Number Hunt 6387 room: Number Hunt
6327 door: Nines 6388 door: Nines
diff --git a/data/__init__.py b/data/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/data/__init__.py
diff --git a/ids.yaml b/data/ids.yaml index 1a1ceca..1a1ceca 100644 --- a/ids.yaml +++ b/data/ids.yaml
diff --git a/static_logic.py b/static_logic.py index f6690f9..e9f82fb 100644 --- a/static_logic.py +++ b/static_logic.py
@@ -1,6 +1,6 @@
1from typing import Dict, List, NamedTuple, Optional, Set 1from typing import Dict, List, NamedTuple, Optional, Set
2 2
3import yaml 3import Utils
4 4
5 5
6class RoomAndDoor(NamedTuple): 6class RoomAndDoor(NamedTuple):
@@ -108,9 +108,11 @@ def load_static_data():
108 except ImportError: 108 except ImportError:
109 from importlib_resources import files 109 from importlib_resources import files
110 110
111 from . import data
112
111 # Load in all item and location IDs. These are broken up into groups based on the type of item/location. 113 # Load in all item and location IDs. These are broken up into groups based on the type of item/location.
112 with files("worlds.lingo").joinpath("ids.yaml").open() as file: 114 with files(data).joinpath("ids.yaml").open() as file:
113 config = yaml.load(file, Loader=yaml.Loader) 115 config = Utils.parse_yaml(file)
114 116
115 if "special_items" in config: 117 if "special_items" in config:
116 for item_name, item_id in config["special_items"].items(): 118 for item_name, item_id in config["special_items"].items():
@@ -144,8 +146,8 @@ def load_static_data():
144 PROGRESSIVE_ITEM_IDS[item_name] = item_id 146 PROGRESSIVE_ITEM_IDS[item_name] = item_id
145 147
146 # Process the main world file. 148 # Process the main world file.
147 with files("worlds.lingo").joinpath("LL1.yaml").open() as file: 149 with files(data).joinpath("LL1.yaml").open() as file:
148 config = yaml.load(file, Loader=yaml.Loader) 150 config = Utils.parse_yaml(file)
149 151
150 for room_name, room_data in config.items(): 152 for room_name, room_data in config.items():
151 process_room(room_name, room_data) 153 process_room(room_name, room_data)