Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a sorceror, I want to be able to create potions from various ingredients. #64

Open
stevebrownlee opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@stevebrownlee
Copy link

Given that a sorceror has authenticated and wants to create a potion
When the sorceror clicks on the Potions nav item
Then a list of potions, if any, should be displayed
And a button should appear above the list labeled "Create Potion"

Given that a sorceror is viewing the list of artifacts
When the sorceror clicks on the "Create Potion" button
Then a potion form should be displayed with the following fields
And a button should appear below the form labeled "Brew"

Fields

  • Name (text field)
  • Ingredients (checkbox group)

Given that a sorceror has provided a name and chosen ingredients
When the sorceror clicks on the "Brew" button
Then the list of potions should be displayed and should contain the new potion
And the ingredients used to build it should not be available for any future potion

Potency and Type

The potency of the created potion will be determined on creation through the following formula

$$ \frac{\displaystyle\sum_{i=1}^{n} x_i}{\displaystyle k} $$

  • k is a random integer from 1-10
  • x is one of the chosen ingredients

Add the potency of each ingredient, then divide that number by a random number from 1-10.

@stevebrownlee stevebrownlee added the enhancement New feature or request label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant