From 669167b4026b952c59dc7c05582314620a6bb6d1 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Thu, 19 Nov 2020 19:27:38 +0100 Subject: [PATCH] correctif grind max level --- cogs/wynncraft/wynncraftcog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/wynncraft/wynncraftcog.py b/cogs/wynncraft/wynncraftcog.py index b8a4893..44206b5 100644 --- a/cogs/wynncraft/wynncraftcog.py +++ b/cogs/wynncraft/wynncraftcog.py @@ -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()