Skip to content

Spellcasting Refactor #178

@zeel01

Description

@zeel01

At the moment spellcasting relies on the existence of a feature named "Spellcasting" or similar to host the spell list. The naming of the feature hints at the type of spellcaster the Actor is, and then spells that match that casting type are assigned to that casting feature's list. Spells that don't fit an existing feature are not shown at all.

Goals

The new version of spellcasting should accomplish the following:

Bonus

Spellcasting Feature

This will display more or less the same as the existing feature. A list using either slots, uses/day, or pact slots that includes spells of any action type or casting time. The actor might have more than one variation of this feature for different kinds of spellcasting or different spellcasting abilities.

Spellcasting Action

Unlike the official statblocks, the Spellcasting Action will display basically identically to the spellcasting feature including allowance for spell slots, and spells that are not actions. The only real difference is that it will appear in the Actions section of the sheet.

The assumption is that the GM will enter the details of the Actor in a logical and consistent way.

Auto Feature/Action

The idea here is to automatically determine if the casting feature should be a Feature or an Action based on the spells known. An Actor that only has x/day spells that are actions will have a Spellcasting Action, but any spells that break that strict requirement will cause the display to switch to the older Spellcasting Feature style.

The assumption is that the GM will enter the details of the Actor, and the sheet will try to organize those details in a way that seems to best fit. If the Actor seems to be an "old style" NPC, that's how it should be displayed. If it seems to be of the new style, it will display that way instead.

Metadata

Metadata

Assignees

Labels

JavascriptCode issueRefactor/TDSomething that needs refactored, or addresses technical debt.TemplateIssues with Handlebars and HTML

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions