customizable stat bar thing
@@ -53,11 +53,12 @@ class MobSpawning(commands.Cog):
u = m.author
h_user = await self.db.get_health(u.id)
+ hh = ["<:heart_full:717535027604488243>", "<:heart_empty:717535027319144489>"]
while h_user > 0 and mob[1] > 0:
h_user = await self.db.get_health(u.id)
new_emb = discord.Embed(color=discord.Color.green(), description="Do you want to ``attack`` or ``flee``?")
- new_emb.add_field(name=f"**{u.display_name}**", value=await self.db.calc_stat_bar(h_user, 20, 10)) # how tf is this gonna work ya retarded cunt
- new_emb.add_field(name=f"**{mob[0]}**", value=await self.db.calc_stat_bar(mob[1], self.mobs[mob_key][1], 10))
+ new_emb.add_field(name=f"**{u.display_name}**", value=await self.db.calc_stat_bar(h_user, 20, 10, hh[0], hh[1])) # how tf is this gonna work ya retarded cunt
+ new_emb.add_field(name=f"**{mob[0]}**", value=await self.db.calc_stat_bar(mob[1], self.mobs[mob_key][1], 10, hh[0], hh[1]))
new_emb.set_image(url=mob[2])
await f_msg.edit(embed=new_emb)
break
