Skip to content

Commit

Permalink
We need more room for the stat ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Mar 10, 2024
1 parent cd4ebd3 commit f5af095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions adventure/adventure.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ async def _simple(
log.debug("Setting session seed to custom number was string %s", challenge)
seed = GameSeed.from_int(int(challenge))
challenge = None

rng = Random(seed)

self.bot.dispatch("adventure", ctx)
Expand Down
2 changes: 1 addition & 1 deletion adventure/adventureresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class GameSeed:
Custom monsters with higher stats will break this if they go above 4095.
"""

TIMESTAMP_SHIFT = 26
TIMESTAMP_SHIFT = 30
# This number should always be a multiple of 2
HP_SHIFT = TIMESTAMP_SHIFT - 1
# Since this is essentially true or false for hp or dipl just 1 bit is needed
Expand Down

0 comments on commit f5af095

Please sign in to comment.