@@ -184,19 +184,22 @@ def create_items(self) -> None:
184
184
self .pre_fill_items = []
185
185
# For any and different world, set item rule instead
186
186
187
- for option in ["maps" , "compasses" , "small_keys" , "nightmare_keys" , "stone_beaks" , "instruments" ]:
188
- option = "shuffle_" + option
187
+ for dungeon_item_type in ["maps" , "compasses" , "small_keys" , "nightmare_keys" , "stone_beaks" , "instruments" ]:
188
+ option = "shuffle_" + dungeon_item_type
189
189
option = self .player_options [option ]
190
190
191
191
dungeon_item_types [option .ladxr_item ] = option .value
192
192
193
+ # The color dungeon does not contain an instrument
194
+ num_items = 8 if dungeon_item_type == "instruments" else 9
195
+
193
196
if option .value == DungeonItemShuffle .option_own_world :
194
197
self .multiworld .local_items [self .player ].value |= {
195
- ladxr_item_to_la_item_name [f"{ option .ladxr_item } { i } " ] for i in range (1 , 10 )
198
+ ladxr_item_to_la_item_name [f"{ option .ladxr_item } { i } " ] for i in range (1 , num_items + 1 )
196
199
}
197
200
elif option .value == DungeonItemShuffle .option_different_world :
198
201
self .multiworld .non_local_items [self .player ].value |= {
199
- ladxr_item_to_la_item_name [f"{ option .ladxr_item } { i } " ] for i in range (1 , 10 )
202
+ ladxr_item_to_la_item_name [f"{ option .ladxr_item } { i } " ] for i in range (1 , num_items + 1 )
200
203
}
201
204
# option_original_dungeon = 0
202
205
# option_own_dungeons = 1
0 commit comments