|
20 | 20 | from .Items import ManualItem |
21 | 21 | from .Rules import set_rules |
22 | 22 | from .Options import manual_options_data |
23 | | -from .Helpers import is_item_enabled, get_option_value, get_items_for_player, resolve_yaml_option, format_state_prog_items_key, ProgItemsCat |
| 23 | +from .Helpers import is_item_enabled, get_option_value, remove_specific_item, resolve_yaml_option, format_state_prog_items_key, ProgItemsCat |
24 | 24 |
|
25 | 25 | from BaseClasses import CollectionState, ItemClassification, Item |
26 | 26 | from Options import PerGameCommonOptions |
@@ -245,7 +245,7 @@ def stringCheck(string: str) -> ItemClassification: |
245 | 245 | for starting_item in items: |
246 | 246 | items_started.append(starting_item) |
247 | 247 | self.multiworld.push_precollected(starting_item) |
248 | | - pool.remove(starting_item) |
| 248 | + remove_specific_item(pool, starting_item) |
249 | 249 |
|
250 | 250 | self.start_inventory = {i.name: items_started.count(i) for i in items_started} |
251 | 251 |
|
@@ -390,7 +390,7 @@ def generate_basic(self): |
390 | 390 | location.place_locked_item(item_to_place) |
391 | 391 |
|
392 | 392 | # remove the item we're about to place from the pool so it isn't placed twice |
393 | | - self.multiworld.itempool.remove(item_to_place) |
| 393 | + remove_specific_item(self.multiworld.itempool, item_to_place) |
394 | 394 |
|
395 | 395 |
|
396 | 396 | after_generate_basic(self, self.multiworld, self.player) |
@@ -501,7 +501,7 @@ def adjust_filler_items(self, item_pool, traps): |
501 | 501 | else: |
502 | 502 | logging.warning("Could not remove enough non-progression items from the pool.") |
503 | 503 | break |
504 | | - item_pool.remove(popped) |
| 504 | + remove_specific_item(item_pool, popped) |
505 | 505 |
|
506 | 506 | return item_pool |
507 | 507 |
|
|
0 commit comments