Skip to content

Commit

Permalink
Sort the monster list every time so seed remains consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Mar 13, 2024
1 parent 248dd9a commit 728113c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adventure/adventure.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ async def update_monster_roster(
extra_monsters = await self.config.themes.all()
extra_monsters = extra_monsters.get(theme, {}).get("monsters", {})
monsters = {**self.MONSTERS, **self.AS_MONSTERS, **extra_monsters}
monsters = {k: v for k, v in sorted(monsters.items(), key=lambda x: x[0])}
transcended = False
# set our default return values first
monster_stats = 1.0
Expand Down

0 comments on commit 728113c

Please sign in to comment.