None fix, perhaps
This commit is contained in:
parent
f3e8929d2a
commit
c211749a5b
@ -443,6 +443,8 @@ class PlantTycoon(Cog):
|
|||||||
else:
|
else:
|
||||||
products = ""
|
products = ""
|
||||||
for product in gardener.products:
|
for product in gardener.products:
|
||||||
|
if products is None:
|
||||||
|
continue
|
||||||
products += "{} ({}) {}\n".format(
|
products += "{} ({}) {}\n".format(
|
||||||
product.capitalize(),
|
product.capitalize(),
|
||||||
gardener.products[product] / self.products[product.lower()]["uses"],
|
gardener.products[product] / self.products[product.lower()]["uses"],
|
||||||
@ -565,15 +567,15 @@ class PlantTycoon(Cog):
|
|||||||
em = discord.Embed(
|
em = discord.Embed(
|
||||||
title="All gardening supplies that you can buy:", color=discord.Color.green()
|
title="All gardening supplies that you can buy:", color=discord.Color.green()
|
||||||
)
|
)
|
||||||
for product in self.products:
|
for pd in self.products:
|
||||||
em.add_field(
|
em.add_field(
|
||||||
name="**{}**".format(product.capitalize()),
|
name="**{}**".format(pd.capitalize()),
|
||||||
value="Cost: {} τ\n+{} health\n-{}% damage\nUses: {}\nCategory: {}".format(
|
value="Cost: {} τ\n+{} health\n-{}% damage\nUses: {}\nCategory: {}".format(
|
||||||
self.products[product]["cost"],
|
self.products[pd]["cost"],
|
||||||
self.products[product]["health"],
|
self.products[pd]["health"],
|
||||||
self.products[product]["damage"],
|
self.products[pd]["damage"],
|
||||||
self.products[product]["uses"],
|
self.products[pd]["uses"],
|
||||||
self.products[product]["category"],
|
self.products[pd]["category"],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
await ctx.send(embed=em)
|
await ctx.send(embed=em)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user