quests quefaire (hints for all)
This commit is contained in:
parent
fcba83fea0
commit
ee1c32b10b
@ -289,6 +289,7 @@ class WynncraftCog(commands.Cog):
|
||||
|
||||
@commands.command()
|
||||
async def quefaire(self, ctx, explicit_level: int = 0):
|
||||
hints = []
|
||||
if explicit_level == 0:
|
||||
# check for class then quests
|
||||
player_name = ctx.author.display_name
|
||||
@ -314,10 +315,10 @@ class WynncraftCog(commands.Cog):
|
||||
if quest["name"] in max_class["quests"]["list"]:
|
||||
continue # player has already done this quest
|
||||
|
||||
if quest["level"] <= level and level - quest["level"] < 10:
|
||||
if quest["level"] <= level and level - quest["level"] < 4:
|
||||
# quest is doable
|
||||
await ctx.send(":dizzy: Woosh! Tu peux faire la quête **%s** (%s)" % (quest["name"], quest["url"]))
|
||||
return
|
||||
hints.append(":exclamation: Tu peux faire la quête **%s** (%s)" % (quest["name"], quest["url"]))
|
||||
break
|
||||
else:
|
||||
level = explicit_level
|
||||
|
||||
@ -332,9 +333,8 @@ class WynncraftCog(commands.Cog):
|
||||
grind_spots = await self.config.grind_spots()
|
||||
grind_spots.reverse()
|
||||
|
||||
hints = []
|
||||
for dungeon in dungeons:
|
||||
if level >= dungeon["minlevel"] and level - dungeon["minlevel"] < 10:
|
||||
if level >= dungeon["minlevel"] and level - dungeon["minlevel"] < 7:
|
||||
hints.append(":cyclone: Tu peux faire le donjon **%s** aux coordonnées %s (%s)" % (dungeon["name"], dungeon["location"], dungeon["url"]))
|
||||
break
|
||||
|
||||
@ -346,7 +346,7 @@ class WynncraftCog(commands.Cog):
|
||||
if hints:
|
||||
await ctx.send(":dizzy: Woosh! Voici comment tu peux continuer ton aventure :\n\n\t%s" % "\n\t".join(hints))
|
||||
else:
|
||||
await ctx.send(":x: je sais pas comment t'aider :(")
|
||||
await ctx.send(":x: Tu as du tomber dans une faille spatio-temporelle mortelle car il est normalement impossible que je ne puisse pas te donner de conseils !")
|
||||
|
||||
@commands.command()
|
||||
@checks.admin_or_permissions(manage_guild=True)
|
||||
|
Loading…
Reference in New Issue
Block a user