@@ -171,20 +171,23 @@ def create_item(self, name: str) -> MinitItem:
171
171
return MinitItem (name , item_clas , data .code , self .player )
172
172
173
173
def create_items (self ):
174
+ itemCount = 0
174
175
for item_name , item_data in item_table .items ():
175
176
if (item_data .code and item_data .can_create (
176
177
self ,
177
178
self .player )):
178
179
if (item_name in item_frequencies ):
179
180
for count in range (item_frequencies [item_name ]):
181
+ itemCount += 1
180
182
self .multiworld .itempool .append (
181
183
self .create_item (item_name ))
182
184
else :
185
+ itemCount += 1
183
186
self .multiworld .itempool .append (
184
187
self .create_item (item_name ))
185
188
186
189
non_event_locations = [location for location in self .multiworld .get_locations (self .player ) if not location .event ]
187
- for _ in range (len (non_event_locations ) - len ( self . multiworld . itempool ) ):
190
+ for _ in range (len (non_event_locations ) - itemCount ):
188
191
item_name = self .get_filler_item_name ()
189
192
item_data = item_table [item_name ]
190
193
self .multiworld .itempool .append (
@@ -314,14 +317,14 @@ def create_regions(self):
314
317
manual_connect_start .connect (manual_connect_end .parent_region )
315
318
manual_connect_end .connect (manual_connect_start .parent_region )
316
319
self .output_connections = [
317
- [
320
+ (
318
321
manual_connect_start .name ,
319
322
manual_connect_end .name
320
- ] ,
321
- [
323
+ ) ,
324
+ (
322
325
manual_connect_end .name ,
323
326
manual_connect_start .name
324
- ]
327
+ )
325
328
]
326
329
# print(f"connecting {manual_connect_start.name} and {manual_connect_end.name}")
327
330
# add_manual_connect = False
0 commit comments