forked from rDrama/rDrama
consistency
parent
6db1274227
commit
c856507dfb
|
@ -105,13 +105,13 @@ def purchase_lottery_tickets(v, quantity=1):
|
||||||
if quantity < 1:
|
if quantity < 1:
|
||||||
return False, "Must purchase one or more lottershe tickets!"
|
return False, "Must purchase one or more lottershe tickets!"
|
||||||
elif (v.coins < LOTTERY_TICKET_COST * quantity):
|
elif (v.coins < LOTTERY_TICKET_COST * quantity):
|
||||||
return False, f"Lottery tickets cost {LOTTERY_TICKET_COST} coins each!"
|
return False, f"Lottershe tickets cost {LOTTERY_TICKET_COST} coins each!"
|
||||||
|
|
||||||
most_recent_lottery = get_active_lottery()
|
most_recent_lottery = get_active_lottery()
|
||||||
if (most_recent_lottery is None):
|
if (most_recent_lottery is None):
|
||||||
return False, "There is no active lottery!"
|
return False, "There is no active lottershe!"
|
||||||
|
|
||||||
charge_reason = f'Cost of {quantity} lottery ticket'
|
charge_reason = f'Cost of {quantity} lottershe ticket'
|
||||||
if quantity > 1:
|
if quantity > 1:
|
||||||
charge_reason += 's'
|
charge_reason += 's'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue