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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

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