Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue where cbackpack was not able to find set items. #460

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adventure/class_abilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def heroclass(
"So you feel like taking on a class, {author}?\n"
"Available classes are: {classes}\n"
"Use `{prefix}heroclass name-of-class` to choose one."
).format(author=bold(ctx.author.display_name), classes=classes, prefix=ctx.prefix),
).format(author=bold(ctx.author.display_name), classes=classes, prefix=ctx.clean_prefix),
)

else:
Expand Down Expand Up @@ -281,7 +281,7 @@ async def pet(self, ctx: commands.Context):
return await ctx.send(
box(
_("{author}, you already have a pet. Try foraging ({prefix}pet forage).").format(
author=escape(ctx.author.display_name), prefix=ctx.prefix
author=escape(ctx.author.display_name), prefix=ctx.clean_prefix
),
lang="ansi",
)
Expand Down
2 changes: 1 addition & 1 deletion adventure/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ async def convert(self, ctx: commands.Context, argument: str) -> Mapping[str, An
else:
command = ""
response = {}
set_names = set(SET_BONUSES.keys())
set_names = set(ctx.cog.SET_BONUSES.keys())
parser = NoExitParser(description="Backpack Filter Parsing.", add_help=False)
parser.add_argument("--str", dest="strength", nargs="+")
parser.add_argument("--strength", dest="strength", nargs="+")
Expand Down
2 changes: 1 addition & 1 deletion adventure/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async def _give_loot(
ctx,
box(
("Valid loot types: {loot_types}: " "ex. `{prefix}give loot normal @locastan` ").format(
prefix=ctx.prefix, loot_types=humanize_list([i.ansi for i in loot_types])
prefix=ctx.clean_prefix, loot_types=humanize_list([i.ansi for i in loot_types])
),
lang="ansi",
),
Expand Down
Loading