mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
add_card
quantity must always be at least 1
This commit is contained in:
parent
4794358b5b
commit
0b00a778d6
@ -194,6 +194,7 @@ class Penguin(Spheniscidae, penguin.Penguin):
|
||||
return True
|
||||
|
||||
async def add_card(self, card, quantity=0, member_quantity=0):
|
||||
quantity = max(1, quantity + member_quantity)
|
||||
if card.id in self.cards:
|
||||
penguin_card = self.cards[card.id]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user