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

Advancement Type: Item Grant #1400

Closed
arbron opened this issue Jan 15, 2022 · 1 comment
Closed

Advancement Type: Item Grant #1400

arbron opened this issue Jan 15, 2022 · 1 comment

Comments

@arbron
Copy link
Collaborator

arbron commented Jan 15, 2022

This is the first type of advancement to be implemented with the new system. Its goal is to replicate the functionality of the system that automatically grants features on level-up using a hardcoded feature list in classFeatures.js. This system is not intended for when the user has to make a choices such as with Fighting Style or Metamagic, but for things that should always be added such as a Barbarian's Rage or a Monk's Unarmored Defense.

This advancement would resolve #878.

Level Up Interface

The interface of this advancement should match the interface provided by the current SelectItemsPrompt, giving the player a list of items that are going to be added with the option of deselecting any items they do not wish to add to their character.

Configuration

Configuration of this is simple, it will contain an items entry which is an array of UUIDs of items to be added.

{
  items: [
    "Compendium.dnd5e.classfeatures.u4NLajXETJhJU31v",
    "Compendium.dnd5e.classfeatures.hpLNiGq7y67d2EHA"
  ]
}

Value

This advancement should keep track of which items were added to the character's sheet. For ease of removing those items if the advancement is deleted, it would be valuable to also store the ID of the items created.

{
  added: {
    "ezWijmCnlnQ9ZRX2": "Compendium.dnd5e.classfeatures.u4NLajXETJhJU31v",
    "he8RpPXwSl2lVSIk": "Compendium.dnd5e.classfeatures.hpLNiGq7y67d2EHA"
  }
}
@arbron
Copy link
Collaborator Author

arbron commented Feb 25, 2022

Originally in GitLab by @akrigline

I believe with !480 done this can be considered complete?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants