Skip to content

Commit

Permalink
Removing deprecated item_count (#3309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exempt-Medic authored May 17, 2024
1 parent 4bd4a2c commit 5a2d839
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,6 @@ def has_any_count(self, item_counts: Mapping[str, int], player: int) -> bool:
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
Expand Down

0 comments on commit 5a2d839

Please sign in to comment.