From ac7dfc593746231cc0ca80f249f7212a1d567691 Mon Sep 17 00:00:00 2001 From: Milo Weinberg Date: Sat, 15 Jun 2024 21:41:44 -0400 Subject: [PATCH] Fixies --- bot/cogs/commands/econ.py | 2 +- bot/cogs/core/quests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/cogs/commands/econ.py b/bot/cogs/commands/econ.py index b9a6faec..7106c982 100644 --- a/bot/cogs/commands/econ.py +++ b/bot/cogs/commands/econ.py @@ -1239,7 +1239,7 @@ async def fish(self, ctx: Ctx): wait -= 12 wait = max(random.randint(3, 10), wait) - await asyncio.sleep(wait) + # await asyncio.sleep(wait) # determine if user has fished up junk or an item (rather than a fish) if random.randint(1, 8) == 1 or (lucky and random.randint(1, 5) == 1): diff --git a/bot/cogs/core/quests.py b/bot/cogs/core/quests.py index ce9d1b39..310697ae 100644 --- a/bot/cogs/core/quests.py +++ b/bot/cogs/core/quests.py @@ -67,7 +67,7 @@ async def get_random_quest(self, user_id: int) -> typing.TypedDict( quest_key: str = random.choice(list(self.d.normalized_quests.keys())) quest_def = self.d.normalized_quests[quest_key] - variant_idx = random.randint(0, len(quest_def.targets)) + variant_idx = random.randint(0, len(quest_def.targets) - 1) variant = quest_def.targets[variant_idx] difficulty_multi = await self.fetch_calc_difficulty_multiplier(user_id, quest_def)