forked from MarseyWorld/MarseyWorld
fix plural
parent
e6e6d2f7c4
commit
27d4117f0c
|
@ -109,7 +109,11 @@ def purchase_lottery_tickets(v, quantity=1):
|
|||
if (most_recent_lottery is None):
|
||||
return False, "There is no active lottery!"
|
||||
|
||||
if not v.charge_account('coins', LOTTERY_TICKET_COST * quantity, f'Cost of {quantity} lottery tickets')[0]:
|
||||
charge_reason = f'Cost of {quantity} lottery ticket'
|
||||
if quantity > 1:
|
||||
charge_reason += 's'
|
||||
|
||||
if not v.charge_account('coins', LOTTERY_TICKET_COST * quantity, charge_reason)[0]:
|
||||
return False, "You don't have enough coins"
|
||||
|
||||
v.currently_held_lottery_tickets += quantity
|
||||
|
|
Loading…
Reference in New Issue