Core: recontextualize CollectionState.collect (#3723)

* Core: renamed `CollectionState.collect` arg from `event` to `prevent_sweep` and remove forced collection

* Update TestDungeon.py

---------

Co-authored-by: NewSoupVi <[email protected]>
This commit is contained in:
Aaron Wagener
2024-08-13 22:28:05 +02:00
committed by GitHub
co-authored by NewSoupVi
parent dcaa2f7b97
commit 96d48a923a
19 changed files with 146 additions and 150 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class TestBase(unittest.TestCase):
state = CollectionState(self.multiworld)
for item in items:
item.classification = ItemClassification.progression
state.collect(item, event=True)
state.collect(item, prevent_sweep=True)
state.sweep_for_events()
state.update_reachable_regions(1)
self._state_cache[self.multiworld, tuple(items)] = state