correctif grind max level

This commit is contained in:
Amazed 2020-11-19 19:27:38 +01:00
parent 5573bb2bed
commit 669167b402
1 changed files with 5 additions and 1 deletions

View File

@ -350,7 +350,10 @@ class WynncraftCog(commands.Cog):
for grind_spot in grind_spots:
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
if hints:
@ -666,6 +669,7 @@ class WynncraftCog(commands.Cog):
await update_msg.edit(content=full_text)
except:
traceback.print_exc()
if await self.config.log():
traceback.print_exc()