correctif grind max level

This commit is contained in:
Amazed 2020-11-19 19:27:38 +01:00
parent 5573bb2bed
commit 669167b402

View File

@ -350,7 +350,10 @@ class WynncraftCog(commands.Cog):
for grind_spot in grind_spots: for grind_spot in grind_spots:
if grind_spot["minlevel"] <= level <= grind_spot["maxlevel"]: if grind_spot["minlevel"] <= level <= grind_spot["maxlevel"]:
hints.append(":star: Tu peux grinder aux coordonnées %s jusqu'au niveau %s" % (grind_spot["location"], grind_spot["maxlevel"] + 1)) hotfix_maxlevel = grind_spot["maxlevel"]
if hotfix_maxlevel < 106:
hotfix_maxlevel += 1
hints.append(":star: Tu peux grinder aux coordonnées %s jusqu'au niveau %s" % (grind_spot["location"], hotfix_maxlevel))
break break
if hints: if hints:
@ -666,6 +669,7 @@ class WynncraftCog(commands.Cog):
await update_msg.edit(content=full_text) await update_msg.edit(content=full_text)
except: except:
traceback.print_exc()
if await self.config.log(): if await self.config.log():
traceback.print_exc() traceback.print_exc()