Skip to content

Commit

Permalink
Include transcended in adventureseed
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Mar 13, 2024
1 parent 5623de2 commit 168701d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions adventure/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ async def _adventureseed(self, ctx: commands.Context, seed: Union[str, int]):
challenge = await self.get_challenge(monster_roster, rng)
attribute = rng.choice(list(self.ATTRIBS.keys()))
monster = monster_roster[challenge].copy()
dynamic_stats = self._dynamic_monster_stats(monster.copy(), rng)
state = rng.getstate()
easy_mode = bool(rng.getrandbits(1))
no_monster_30 = rng.randint(0, 100) == 25
rng.setstate(state)
no_monster = rng.randint(0, 100) == 25
seed_box = box(hex(rng.internal_seed)[2:].upper())

hp = monster["hp"]
Expand All @@ -217,6 +211,13 @@ async def _adventureseed(self, ctx: commands.Context, seed: Union[str, int]):
miniboss = monster["miniboss"]
base_stats = f"HP: {hp}\nCHA: {dipl}\nPDEF: {pdef:0.2f}\nMDEF: {mdef:0.2f}\nCDEF: {cdef:0.2f}"

dynamic_stats = self._dynamic_monster_stats(monster.copy(), rng)
state = rng.getstate()
easy_mode = bool(rng.getrandbits(1))
no_monster_30 = rng.randint(0, 100) == 25
rng.setstate(state)
no_monster = rng.randint(0, 100) == 25

dhp = dynamic_stats["hp"]
ddipl = dynamic_stats["dipl"]
dpdef = dynamic_stats["pdef"]
Expand Down Expand Up @@ -252,6 +253,8 @@ async def _adventureseed(self, ctx: commands.Context, seed: Union[str, int]):
if miniboss:
requirements = ", ".join(i for i in miniboss.get("requirements", []))
embed.add_field(name="Miniboss", value=f"{requirements}")
if transcended:
embed.add_field(name="Transcended", value=str(transcended))
if monster.get("image", None):
embed.set_image(url=monster["image"])
await ctx.send(embed=embed)
Expand Down

0 comments on commit 168701d

Please sign in to comment.