Skip to content

Commit

Permalink
Remove guild stats from active adventure stats. If we need to know a …
Browse files Browse the repository at this point in the history
…specific guild stats we can run the command in the guild or provide the ID.
  • Loading branch information
TrustyJAID committed Mar 12, 2024
1 parent d52a5a4 commit f78b702
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions adventure/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ async def _adventurestats(self, ctx: commands.Context, guild: Optional[discord.G
if server is None:
# should not happen but the type checker is happier
continue
stat_range = self._adv_results.get_stat_range(server)
pdef = adventure.monster_modified_stats["pdef"]
mdef = adventure.monster_modified_stats["mdef"]
cdef = adventure.monster_modified_stats.get("cdef", 1.0)
Expand All @@ -211,8 +210,7 @@ async def _adventurestats(self, ctx: commands.Context, guild: Optional[discord.G
msg += (
f"{server.name} - "
f"[{adventure.challenge}]({adventure.message.jump_url})\n"
f"(hp:**{hp}**-char:**{dipl}**-pdef:**{pdef:0.2f}**-mdef:**{mdef:0.2f}**-cdef:**{cdef:0.2f}**)\n"
f"{stat_range}\n\n"
f"(hp:**{hp}**-char:**{dipl}**-pdef:**{pdef:0.2f}**-mdef:**{mdef:0.2f}**-cdef:**{cdef:0.2f}**)\n\n"
)
else:
msg += "None.\n\n"
Expand Down

0 comments on commit f78b702

Please sign in to comment.