Skip to content

Commit

Permalink
Fix N/A - Mortal
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltowait committed Aug 11, 2023
1 parent 2914c70 commit 652d77d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interface/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,11 @@ async def update_header(
blush = int(blush)
except ValueError:
blush = blush.lower()
blush_options = {"yes": 1, "no": 0, "n/a - thin-blood": -1}
if (blush := blush_options.get(blush)) is None:
blush_options = {"yes": 1, "no": 0, "n/a - thin-blood": -1, "n/a - mortal": -1}
if blush not in blush_options:
await inconnu.utils.error(ctx, f"Unknown Blush of Life option: `{blush}`.")
return
blush = blush_options[blush]

await inconnu.header.update_header(ctx, character, int(blush))

Expand Down

0 comments on commit 652d77d

Please sign in to comment.