Correct tour guide check in add inventory handler

This commit is contained in:
Ben 2019-09-09 22:30:37 +01:00
parent 79a7724756
commit 9584ceede2

View File

@ -58,7 +58,7 @@ async def handle_buy_inventory(p, item: Item):
if item.id in p.data.inventory: if item.id in p.data.inventory:
return await p.send_error(400) return await p.send_error(400)
if item.epf: if item.tour:
return await p.add_inbox(p.server.postcards[126]) return await p.add_inbox(p.server.postcards[126])
if p.data.coins < item.cost: if p.data.coins < item.cost: