mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
all_state now only considers unplaced itempool items and sweeps. This gives an accurate depiction of what would be possible from this point on.
This commit is contained in:
@@ -87,8 +87,6 @@ class World(object):
|
|||||||
ret = CollectionState(self)
|
ret = CollectionState(self)
|
||||||
|
|
||||||
def soft_collect(item):
|
def soft_collect(item):
|
||||||
if 'Crystal' in item.name or 'Pendant' in item.name:
|
|
||||||
return
|
|
||||||
if item.name.startswith('Progressive '):
|
if item.name.startswith('Progressive '):
|
||||||
if 'Sword' in item.name:
|
if 'Sword' in item.name:
|
||||||
if ret.has('Golden Sword'):
|
if ret.has('Golden Sword'):
|
||||||
@@ -112,10 +110,10 @@ class World(object):
|
|||||||
elif item.advancement:
|
elif item.advancement:
|
||||||
ret.prog_items.append(item.name)
|
ret.prog_items.append(item.name)
|
||||||
|
|
||||||
for location in self.get_filled_locations():
|
|
||||||
soft_collect(location.item)
|
|
||||||
for item in self.itempool:
|
for item in self.itempool:
|
||||||
soft_collect(item)
|
soft_collect(item)
|
||||||
|
ret.sweep_for_events()
|
||||||
|
ret._clear_cache()
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def find_items(self, item):
|
def find_items(self, item):
|
||||||
|
Reference in New Issue
Block a user