Removing deprecated item_count (#3309)

This commit is contained in:
Exempt-Medic
2024-05-17 03:54:57 -04:00
committed by GitHub
parent 4bd4a2c541
commit 5a2d839412

View File

@@ -718,10 +718,6 @@ class CollectionState():
def count(self, item: str, player: int) -> int:
return self.prog_items[player][item]
def item_count(self, item: str, player: int) -> int:
Utils.deprecate("Use count instead.")
return self.count(item, player)
def has_from_list(self, items: Iterable[str], player: int, count: int) -> bool:
"""Returns True if the state contains at least `count` items matching any of the item names from a list."""
found: int = 0