mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: use assert correctly (#345)
Core: add some more types to State and add count() method
This commit is contained in:
@@ -545,7 +545,7 @@ def get_pool_core(world, player: int):
|
||||
pool.extend(diff.alwaysitems)
|
||||
|
||||
def place_item(loc, item):
|
||||
assert loc not in placed_items
|
||||
assert loc not in placed_items, "cannot place item twice"
|
||||
placed_items[loc] = item
|
||||
|
||||
# provide boots to major glitch dependent seeds
|
||||
@@ -681,7 +681,7 @@ def make_custom_item_pool(world, player):
|
||||
treasure_hunt_icon = None
|
||||
|
||||
def place_item(loc, item):
|
||||
assert loc not in placed_items
|
||||
assert loc not in placed_items, "cannot place item twice"
|
||||
placed_items[loc] = item
|
||||
|
||||
# Correct for insanely oversized item counts and take initial steps to handle undersized pools.
|
||||
|
||||
Reference in New Issue
Block a user